1 // Test for bitfield alignment in structs on IA-32
3 // { dg-require-effective-target ia32 }
4 // { dg-options "-O2 -mno-align-double -mno-ms-bitfields" }
6 extern void abort (void);
7 extern void exit (int);
37 if (&a
.c
- &a
.a
!= 12)
41 if (sizeof (a4
) != 4 * 16)
43 if (sizeof (b
) != 2 * 4 + 16)
45 if (__alignof__ (b
.e
) != 4)
47 if (&c
.i
- &c
.g
!= 12)
51 if (__alignof__ (c
.h
) != 4)