Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69558-2.c
blob83ae6470a362dc2c19b166537819a80e0f5d2a56
1 /* PR c/69558 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wdeprecated-declarations" } */
5 /* Verify disabling -Wdeprecated-declarations, where neither the _Pragma nor
6 the affected code are in macros. */
8 __attribute__((deprecated)) void foo (void);
10 void bar (void)
12 _Pragma ("GCC diagnostic push")
13 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
14 foo ();
15 _Pragma ("GCC diagnostic pop")