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 bar()8void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */ 9 10 int i; 11 12 void foo()13foo () 14 { 15 if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */ 16 grill (); 17 } 18