Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / abi / bitfield8.C
blob58e74be08fb52d957fcfd5e299d3a7a813bdbd1b
1 // { dg-do run { target i?86-*-* x86_64-*-* } }
2 // { dg-options "-fabi-version=0" }
3 // { dg-require-effective-target ilp32 }
6 struct A { 
7   virtual void f() {}
8   int f1 : 1; 
9 };
11 struct B : public A {
12   int f2 : 31;
13   int f3 : 4; 
14   int f4 : 3;
17 int main ()
19   if (sizeof (B) != 16)
20     return 1;
22