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

struct E1 {};
struct E2 : public E1 {
  virtual void f ();
};
struct E3 : virtual public E1 {
};
struct S : public E2, virtual public E3 {
};

int main () {
  if (sizeof (S) != 12)
    return 1;
}