summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/vbase11.C
blob: 8c854b9c13e6bde11f0362e76d34c9b345408cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0" }

struct A { virtual void f(); char c1; };
struct B { B(); char c2; };
struct C : public A, public virtual B { };

int main () {
  if (sizeof (C) != 8)
    return 1;
}