2 /* { dg-do compile } */
3 /* { dg-options "-Wdeprecated-declarations" } */
5 /* TODO: XFAIL for g++ (works for C). */
8 _Pragma ("GCC diagnostic push") \
9 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
11 _Pragma ("GCC diagnostic pop")
14 static inline void bar (void) { x (); } /* { dg-bogus "in definition of|deprecated" "" } */ \
17 __attribute__((deprecated
)) void foo (void); /* { dg-bogus "declared here" "" } */
19 C (foo
) /* { dg-bogus "is deprecated" } */