annotate gcc/testsuite/gcc.dg/no-asm-4.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-std=gnu99 -fno-asm" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* Verify that the GNU extensions asm and typeof are not recognized as
kono
parents:
diff changeset
5 keywords when using -fno-asm in GNU89 mode, but that inline (which
kono
parents:
diff changeset
6 is a keyword in C99 but not C89) is recognized. */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 int asm; /* { dg-bogus "before .asm." } */
kono
parents:
diff changeset
9 int inline; /* { dg-warning "empty declaration" } */
kono
parents:
diff changeset
10 /* { dg-error "empty declaration" "" { target *-*-* } .-1 } */
kono
parents:
diff changeset
11 int typeof; /* { dg-bogus "before .typeof." } */