Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69558-4.c
blob02d526e09bed2060bb3d11949545b36f9b148b9b
1 /* PR c/69558 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wdeprecated-declarations" } */
5 /* Verify disabling -Wdeprecated-declarations, where the _Pragma and the
6 affected code are in different macros. */
8 #define A \
9 _Pragma ("GCC diagnostic push") \
10 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
11 #define B \
12 _Pragma ("GCC diagnostic pop")
13 #define C \
14 foo ();
16 __attribute__((deprecated)) void foo (void);
18 void bar (void)