summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/int-as-enum1.C
blob: 7c37eb08792b0e71e2de5981862f5e1ebba6ea5c (plain)
1
2
3
4
5
6
// PR c++/4207
// Origin: <wanderer@rsu.ru>
// { dg-do compile }

typedef int A;	// { dg-error "previous" }
enum ::A {};	// { dg-error "typedef-name|expected unqualified-id" }