1 /* { dg-do compile } */ 2 /* { dg-options "-Wattributes" } */ 3 4 /* Make sure #pragma can enable a warning. */ 5 6 #pragma GCC diagnostic warning "-Waddress" 7 8 void grill (); bar()9void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */ 10 11 int i; 12 13 void foo()14foo () 15 { 16 if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ 17 grill (); 18 } 19