* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69558-1.c
blob57ac4904d3120ffda431f7be779e396b99e69604
1 /* PR c/69558 */
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. */
8 #define A \
9 _Pragma ("GCC diagnostic push") \
10 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
11 #define B \
12 _Pragma ("GCC diagnostic pop")
14 __attribute__((deprecated)) void foo (void);
16 void bar (void)
19 foo ();