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