OSDN Git Service

* c-decl.c (finish_struct): Move code to set DECL_PACKED after
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / bitfld-17.c
1 /* { dg-do compile } */
2 /* { dg-options "" } */
3
4 struct t
5 {
6   char a:4;
7   char b:8 __attribute__ ((packed));
8   char c:4;
9 };                              /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" } */
10
11 int assrt[sizeof (struct t) == 2 ? 1 : -1];