blob: 067d9ae3851b2912d2deee4bd76be067be9b4a63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-options "-Wno-packed-bitfield-compat" } */
/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target i?86-*-netware } } */
/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target { i?86-*-mingw* x86_64-*-mingw* } } } */
struct t
{
char a:4;
char b:8 __attribute__ ((packed));
char c:4;
};
int assrt[sizeof (struct t) == 2 ? 1 : -1];
|