summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/crash1.C
blob: d5eb7c26aedd8a00387e8bdec1732046977e9036 (plain)
1
2
3
4
5
6
// PR c++/30298

union A {};

struct B : A {}; // { dg-error "fails to be a struct or class type" }
struct B : A {}; // { dg-error "redefinition" }