2009-07-17 Richard Guenther <rguenther@suse.de>
[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];