unwind: use the shared success_fail_return() function
[smatch.git] / validation / packed-bitfield5.c
blob87dbf9c221a1a533afc8fc2e8252bb6b0f3c3722
1 #define __packed __attribute__((packed))
3 typedef __UINT32_TYPE__ u32;
5 struct s {
6 u32 a:5;
7 u32 f:30;
8 u32 z:5;
9 } __packed;
10 _Static_assert(sizeof(struct s) == 5);
12 static int ld(struct s *s)
14 return s->f;
18 * check-name: packed-bitfield5
19 * check-description: is check_access() OK with 'overlapping' packed bitfields?