PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69558-3.c
blob45c38a9d9cecf5f0b7f113aa07f305b5e072f689
1 /* PR c/69558 */
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*. */
8 #define C \
9 foo ();
11 __attribute__((deprecated)) void foo (void);
13 void bar (void)
15 _Pragma ("GCC diagnostic push")
16 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
18 _Pragma ("GCC diagnostic pop")