OSDN Git Service

PR tree-optimize/33172
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / no-asm-2.C
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 // behaviour.  If that behaviour changes, this test should change.
8
9 int asm;        // { dg-bogus "before .asm." }
10 int typeof;     // { dg-bogus "before .typeof." }