Rebase.
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-12.c
blob4f0bd17623ba5a75e0336a4efda15c377ab600d2
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Waddress" } */
4 /* Make sure #pragma can override -Wfoo. */
6 #pragma GCC diagnostic ignored "-Waddress"
8 void __attribute__((dj)) bar() { } /* { dg-warning "attribute directive ignored" } */
10 int i;
12 void
13 foo ()
15 if (&i) /* { dg-bogus "true" } */
16 grill ();