1 // Test for bitfield alignment in structs on IA-32
2 // { dg-do run { target i?86-*-* } }
3 // { dg-options "-O2" }
4 // { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} }
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)