PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / no-gnu-keywords-1.C
blob8dbbd5f3482197dd26c662577cc8d6754eb17416
1 // { dg-do compile }
2 // { dg-options "-fno-gnu-keywords" }
4 // Verify that the keyword asm is recognized and that the GNU
5 // extension typeof is not recognized as a keyword when using
6 // -fno-gnu-keywords.
8 int asm;        // { dg-error "before .asm." }
9 int typeof;     // { dg-bogus "before .typeof." }