* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-12.c
blob0cb1f78f8054c91a18b612db3388c64d146e84d6
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Walways-true" } */
4 /* Make sure #pragma can override -Wfoo. */
6 #pragma GCC diagnostic ignored "-Walways-true"
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 ();