Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / testsuite / g++.dg / ext / bitfield4.C
blob258b3338c238cc1ad377a40deccf1f27f3ae2a1d
1 /* { dg-do compile } */
2 /* { dg-options "" } */
4 struct t
5 { /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
6   char a:4;
7   char b:8 __attribute__ ((packed));
8   char c:4;
9 };
11 int assrt[sizeof (struct t) == 2 ? 1 : -1];