1 // Test for bitfield alignment in structs on IA-32
2 // { dg-do run { target i?86-*-* x86_64-*-* } }
3 // { dg-require-effective-target ilp32 }
4 // { dg-options "-O2" }
5 // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} }
7 extern void abort (void);
8 extern void exit (int);
38 if (&a
.c
- &a
.a
!= 12)
42 if (sizeof (a4
) != 4 * 16)
44 if (sizeof (b
) != 2 * 4 + 16)
46 if (__alignof__ (b
.e
) != 4)
48 if (&c
.i
- &c
.g
!= 12)
52 if (__alignof__ (c
.h
) != 4)