(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr69558-3.c
       1  /* PR c/69558 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wdeprecated-declarations" } */
       4  
       5  /* Verify disabling -Wdeprecated-declarations, where the _Pragma is not
       6     in a macro, but the affected code *is*.  */
       7  
       8  #define C \
       9    foo ();
      10  
      11  __attribute__((deprecated)) void foo (void);
      12  
      13  void bar (void)
      14  {
      15    _Pragma ("GCC diagnostic push")
      16    _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
      17    C
      18    _Pragma ("GCC diagnostic pop")
      19  }