Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / Werror-6.c
blob11f28b0aa6a078ac9bed072da394b9b8ae13a3bc
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Werror=always-true" } */
4 /* Make sure -Werror-foo emits an error and not a warning */
6 void __attribute__((dj)) bar() { } /* { dg-warning "warning: .* attribute directive ignored" } */
8 int i;
10 void
11 foo ()
13 if (&i) /* { dg-error "error: .* will always evaluate as 'true'" } */
14 grill ();