summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/no-asm-1.C
blob: 6c4c20439591660d14b0b7e5e17f6fbcd419be22 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }
// { dg-options "" }

// Verify that asm and the GNU extension typeof are recognized as
// keywords.

int asm;	// { dg-error "before .asm." }
int typeof;	// { dg-error "expected" }
// { dg-error "multiple types" "" { target *-*-* } 8 }
// { dg-error "declaration" "" { target *-*-* } 8 }