summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/enum3.C
blob: dc07193d389fc39e314bd7745b051435740c2d7b (plain)
1
2
3
4
5
// PR c++/28261

struct A {}; // { dg-error "A::A" }

A::A (enum { e }) {} // { dg-error "defined|prototype" }