1 /* Test for bitfield alignment in structs and unions. */
2 /* { dg-do run { target pcc_bitfield_type_matters } } */
3 /* { dg-options "-O2" } */
5 extern void abort (void);
6 extern void exit (int);
8 typedef long la __attribute__((aligned (8)));
27 long y : 6 __attribute__((aligned (8)));
47 long y : 6 __attribute__((aligned (8)));
54 if (sizeof (a) != sizeof (b))
56 if (sizeof (a) != sizeof (c))
58 if (sizeof (a) != sizeof (d))
60 if ((&a.c - &a.a) != (&b.c - &b.a))
62 if ((&a.c - &a.a) != (&c.c - &c.a))
64 if ((&a.c - &a.a) != (&d.c - &d.a))