2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-6.c
bloba99c13b08e008a0052e34ebef7f182d422077900
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes -Werror=address" } */
3 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
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 ();