summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/no-asm-2.c
blob: 3cd41141de1cb4fcfc6ea7fd59a59b58d51db777 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-std=gnu89 -fno-asm" } */

/* Verify that these GNU extensions are not recognized as keywords
   when using -fno-asm in GNU89 mode.  */

int asm;	/* { dg-bogus "before .asm." } */
int inline;	/* { dg-bogus "empty declaration" } */
int typeof;	/* { dg-bogus "before .typeof." } */