aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/no-asm-2.C
blob: 2befc26e7e3977e65c04c4f31978fe61e167f1ec (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
// behavior.  If that behavior changes, this test should change.

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