1 // Test for oversized bitfield alignment in structs on IA-32
2 // { dg-do run { target i?86-*-* x86_64-*-* } }
3 // { dg-options "-O2" }
4 // Cygwin and mingw32 default to MASK_ALIGN_DOUBLE. Override to ensure
6 // { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
7 // { dg-require-effective-target ilp32 }
12 int b : 224; // { dg-warning "exceeds its type" "" }
40 long long n : 160; // { dg-warning "exceeds its type" "" }
53 if (&a.c - &a.a != 32)
57 if (sizeof (a4) != 4 * 36)
59 if (sizeof (b) != 2 * 4 + 36)
61 if (__alignof__ (b.e) != 4)
63 if (&c.i - &c.g != 12)
67 if (sizeof (c4) != 4 * 16)
69 if (sizeof (d) != 2 * 4 + 16)
71 if (__alignof__ (d.k) != 4)
73 if (&e.o - &e.m != 24)
77 if (sizeof (e4) != 4 * 28)
79 if (sizeof (f) != 2 * 4 + 28)
81 if (__alignof__ (f.q) != 4)