summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/enum20.C
blob: f39933ac4eadc00c184d88d80ac1b33b771bed10 (plain)
1
2
3
4
5
// PR c++/47635
// { dg-do compile { target c++11 } }

enum A { };
void A::f() { }			// { dg-error "6:.enum A. is not a class" }