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