PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-3.c
blob76e0680cb59d27cd60e6dba120b622bf19cf41aa
1 /* { dg-do compile } */
2 /* { dg-options "-Waddress -Wattributes" } */
4 /* Make sure the command line option enables the warning. */
6 void grill ();
7 void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
9 int i;
11 void
12 foo ()
14 if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */
15 grill ();