Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / no-asm-2.C
blobfa614d8e24e7415a414c346e7e97654b655864ab
1 // { dg-do compile }
2 // { dg-options "-fno-asm" }
4 // Verify that the keyword asm and the GNU extension typeof are not
5 // recognized as keywords when using -fno-asm.  Having -fno-asm affect
6 // a standard C++ keyword seems strange, but that is existing
7 // behaviour.  If that behaviour changes, this test should change.
9 int asm;        // { dg-bogus "before .asm." }
10 int typeof;     // { dg-bogus "before .typeof." }