Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-3.c
bloba994714446c1945c64b214d43fb02f92aa8d4650
1 /* { dg-do compile } */
2 /* { dg-options "-Walways-true -Wattributes" } */
4 /* Make sure the command line option enables the warning. */
6 void __attribute__((dj)) bar() { } /* { dg-warning "warning: .* attribute directive ignored" } */
8 int i;
10 void
11 foo ()
13 if (&i) /* { dg-warning "warning: .* will always evaluate as 'true'" } */
14 grill ();