2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-6.c
blob2c37717168f7bc3110eeca9d96c82077d20eee3c
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Werror=address" } */
4 /* Make sure -Werror-foo emits an error and not a warning */
6 void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
8 int i;
10 void
11 foo ()
13 if (&i) /* { dg-error ".* will always evaluate as 'true'" } */
14 grill ();