Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / gcc.dg / Werror-5.c
blobc03fc3b51097e4b6d875d1a8c118b08659c1507a
1 /* { dg-do compile } */
2 /* { dg-options "-Waddress -Wattributes -Werror" } */
3 /* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
5 /* Make sure -Werror turns warnings in to errors. */
7 void __attribute__((dj)) bar() { } /* { dg-error ".* attribute directive ignored" } */
9 int i;
11 void
12 foo ()
14 if (&i) /* { dg-error ".* will always evaluate as 'true'" } */
15 grill ();