[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / no-asm-4.c
blob863e9ebac87d5588e8bb9c76e43be1d9b11755ff
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99 -fno-asm" } */
4 /* Verify that the GNU extensions asm and typeof are not recognized as
5 keywords when using -fno-asm in GNU89 mode, but that inline (which
6 is a keyword in C99 but not C89) is recognized. */
8 int asm; /* { dg-bogus "before .asm." } */
9 int inline; /* { dg-warning "empty declaration" } */
10 /* { dg-error "empty declaration" "" { target *-*-* } .-1 } */
11 int typeof; /* { dg-bogus "before .typeof." } */