aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty9.C
blob: 757bf6c8690e39e4b9975702d067fa65c49e6e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do run { target i?86-*-* } }
// { 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;
}