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