112a9d9c8Sopenharmony_ci// bindgen-flags: --no-layout-tests 212a9d9c8Sopenharmony_ci// 312a9d9c8Sopenharmony_ci// Unfortunately, we aren't translating the third struct correctly yet. But we 412a9d9c8Sopenharmony_ci// definitely shouldn't divide-by-zero when we see it... 512a9d9c8Sopenharmony_ci// 612a9d9c8Sopenharmony_ci// Once we fix #981 we should remove the `--no-layout-tests`. 712a9d9c8Sopenharmony_ci 812a9d9c8Sopenharmony_cistruct WithBitfield { 912a9d9c8Sopenharmony_ci unsigned : 7; 1012a9d9c8Sopenharmony_ci unsigned a; 1112a9d9c8Sopenharmony_ci}; 1212a9d9c8Sopenharmony_ci 1312a9d9c8Sopenharmony_cistruct WithBitfieldAndAttrPacked { 1412a9d9c8Sopenharmony_ci unsigned : 7; 1512a9d9c8Sopenharmony_ci unsigned a; 1612a9d9c8Sopenharmony_ci} __attribute__((packed)); 1712a9d9c8Sopenharmony_ci 1812a9d9c8Sopenharmony_ci#pragma pack(1) 1912a9d9c8Sopenharmony_cistruct WithBitfieldAndPacked { 2012a9d9c8Sopenharmony_ci unsigned : 7; 2112a9d9c8Sopenharmony_ci unsigned a; 2212a9d9c8Sopenharmony_ci}; 23