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

struct A {};

struct B : A, A {}; // { dg-error "duplicate base type" }
struct B : A, A {}; // { dg-error "redefinition" }