gcc/testsuite/g++.dg/ext/no-asm-2.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-fno-asm" } |
| 3 | |
| 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 | // behavior. If that behavior changes, this test should change. |
| 8 | |
| 9 | int asm; // { dg-bogus "before .asm." } |
| 10 | int typeof; // { dg-bogus "before .typeof." } |