[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-12.c
bloba87bf6977ad2f3529f65166a6d4cb5e95b5f0c91
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Waddress" } */
4 /* Make sure #pragma can override -Wfoo. */
6 #pragma GCC diagnostic ignored "-Waddress"
8 void grill ();
9 void __attribute__((dj)) bar() { } /* { dg-warning "attribute directive ignored" } */
11 int i;
13 void
14 foo ()
16 if (&i) /* { dg-bogus "true" } */
17 grill ();