2 /* { dg-do compile } */
3 /* { dg-options "-Wdeprecated-declarations" } */
5 /* Verify disabling -Wdeprecated-declarations, where neither the _Pragma nor
6 the affected code are in macros. */
8 __attribute__((deprecated
)) void foo (void);
12 _Pragma ("GCC diagnostic push")
13 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
15 _Pragma ("GCC diagnostic pop")