gcc/testsuite/gcc.dg/no-asm-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-std=gnu89" } */ |
| 3 | |
| 4 | /* Verify that these GNU extensions are recognized as keywords in |
| 5 | GNU89 mode. */ |
| 6 | |
| 7 | int asm; /* { dg-error "before .asm." } */ |
| 8 | int inline; /* { dg-warning "empty declaration" } */ |
| 9 | /* { dg-error "empty declaration" "" { target *-*-* } .-1 } */ |
| 10 | int typeof; /* { dg-error "before .typeof." } */ |