aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/packed-bitfield2.c
blob: 244204c2dd3578bccffc3e4871fa6d33812a0ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct bf2 {
	unsigned p1:2;
	unsigned i1:32;
	unsigned p2:2;
	unsigned s9:9;
	unsigned s9:9;
	unsigned s9:9;
	unsigned b1:1;
} __attribute__((packed));

_Static_assert(sizeof(struct bf2) == 8);

/*
 * check-name: packed-bitfield2
 */