gcc/testsuite/gcc.dg/Werror-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "" } */ |
| 3 | |
| 4 | /* This one is the baseline. Make sure with no option we get no |
| 5 | warnings. */ |
| 6 | |
| 7 | void grill (); |
| 8 | void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */ |
| 9 | |
| 10 | int i; |
| 11 | |
| 12 | void |
| 13 | foo () |
| 14 | { |
| 15 | if (&i) |
| 16 | grill (); |
| 17 | } |