summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/no-gnu-keywords-1.C
blob: 8dbbd5f3482197dd26c662577cc8d6754eb17416 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
// { dg-options "-fno-gnu-keywords" }

// Verify that the keyword asm is recognized and that the GNU
// extension typeof is not recognized as a keyword when using
// -fno-gnu-keywords.

int asm;	// { dg-error "before .asm." }
int typeof;	// { dg-bogus "before .typeof." }