OSDN Git Service

8195fda631d02a181e378547fe20ad1d2c06f4eb
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / bitfield8.C
1 // { dg-do run { target i?86-*-* } }
2 // { dg-options "-fabi-version=0" }
3
4 struct A { 
5   virtual void f() {}
6   int f1 : 1; 
7 };
8
9 struct B : public A {
10   int f2 : 31;
11   int f3 : 4; 
12   int f4 : 3;
13 };
14
15 int main ()
16 {
17   if (sizeof (B) != 16)
18     return 1;
19 }
20