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

// Verify that the keyword asm and the GNU extension typeof are not
// recognized as keywords when using -fno-asm.  Having -fno-asm affect
// a standard C++ keyword seems strange, but that is existing
// behaviour.  If that behaviour changes, this test should change.

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