summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/vbase14.C
blob: 320d5ba77dcb3843726e3d37069520c1d9f2d5ab (plain)
1
2
3
4
5
6
// { dg-options "-Wabi -fabi-version=1" }

struct E1 {};
struct E2 : public E1 {}; // { dg-warning "layout" }
struct E : public E1, public E2 {}; // { dg-warning "layout|ambiguity" }
struct N : public E { virtual void f () {} };  // { dg-warning "nearly" }