1 #define __packed __attribute__((packed)) 2 3 typedef __UINT32_TYPE__ u32; 4 5 struct s { 6 u32 f:24; 7 } __packed; 8 _Static_assert(sizeof(struct s) == 3); 9 ld(struct s * s)10static int ld(struct s *s) 11 { 12 return s->f; 13 } 14 15 /* 16 * check-name: packed-bitfield4 17 * check-description: Is check_access() OK with short packed bitfields? 18 */ 19