1 // bindgen-flags: --no-layout-tests 2 // 3 // Unfortunately, we aren't translating the third struct correctly yet. But we 4 // definitely shouldn't divide-by-zero when we see it... 5 // 6 // Once we fix #981 we should remove the `--no-layout-tests`. 7 8 struct WithBitfield { 9 unsigned : 7; 10 unsigned a; 11 }; 12 13 struct WithBitfieldAndAttrPacked { 14 unsigned : 7; 15 unsigned a; 16 } __attribute__((packed)); 17 18 #pragma pack(1) 19 struct WithBitfieldAndPacked { 20 unsigned : 7; 21 unsigned a; 22 }; 23