2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-3.c
blob97874075db229d8751a51ac810a819329a1ba1fd
1 /* { dg-do compile } */
2 /* { dg-options "-Waddress -Wattributes" } */
4 /* Make sure the command line option enables the warning. */
6 void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
8 int i;
10 void
11 foo ()
13 if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */
14 grill ();