First version committed to git
[zpugcc/jano.git] / toolchain / gcc / gcc / testsuite / g++.dg / abi / vbase13.C
blob6a0bff484d78c61c7691c3c45181c46a15efe1c7
1 // { dg-do run }
2 // { dg-options "-fabi-version=0 -w" }
4 struct E1 {};
5 struct E2 : public E1 {};
6 struct E : public E1, public E2 {};
7 struct N : public E { virtual void f () {} };
9 struct X : virtual public N {
12 int main () {
13   X x;
14   /* N should not be the primary base of X; it is not nearly empty.  */
15   if ((void*)&x == (void*)(N*)&x)
16     return 1;