1 /* PR c/69558 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wdeprecated-declarations" } */ 4 5 /* Verify disabling -Wdeprecated-declarations, where neither the _Pragma nor 6 the affected code are in macros. */ 7 8 __attribute__((deprecated)) void foo (void); 9 bar(void)10void bar (void) 11 { 12 _Pragma ("GCC diagnostic push") 13 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"") 14 foo (); 15 _Pragma ("GCC diagnostic pop") 16 } 17