2 /* { dg-do compile } */
3 /* { dg-options "-Wdeprecated-declarations" } */
5 /* Verify disabling -Wdeprecated-declarations, where the _Pragma is not
6 in a macro, but the affected code *is*. */
11 __attribute__((deprecated
)) void foo (void);
15 _Pragma ("GCC diagnostic push")
16 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
18 _Pragma ("GCC diagnostic pop")