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

struct C4
{
   int b:30;
   C4(){};
};

struct C1:  virtual C4
{
  int i;
};

int main() {
  if (sizeof (C1) != 12)
    return 1;
}
OpenPOWER on IntegriCloud