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