#include <stdio.h>
struct s1 {
int a : 6;
_Bool b : 1;
_Bool c : 1;
_Bool d : 1;
_Bool e : 1;
_Bool f : 1;
_Bool g : 1;
int h : 12;
};
struct s2 {
int a : 6;
_Bool b;
_Bool c;
_Bool d;
_Bool e;
_Bool f;
_Bool g;
int h : 12;
};
int main(void) {
printf("sizeof(struct s1) = %d\n", sizeof(struct s1
)); printf("sizeof(struct s2) = %d\n", sizeof(struct s2
)); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgczEgewogICAgaW50IGEgOiA2OwogICAgX0Jvb2wgYiA6IDE7CiAgICBfQm9vbCBjIDogMTsKICAgIF9Cb29sIGQgOiAxOwogICAgX0Jvb2wgZSA6IDE7CiAgICBfQm9vbCBmIDogMTsKICAgIF9Cb29sIGcgOiAxOwogICAgaW50IGggOiAxMjsKfTsKCnN0cnVjdCBzMiB7CiAgICBpbnQgYSA6IDY7CiAgICBfQm9vbCBiOwogICAgX0Jvb2wgYzsKICAgIF9Cb29sIGQ7CiAgICBfQm9vbCBlOwogICAgX0Jvb2wgZjsKICAgIF9Cb29sIGc7CiAgICBpbnQgaCA6IDEyOwp9OwoKaW50IG1haW4odm9pZCkgewogICAgcHJpbnRmKCJzaXplb2Yoc3RydWN0IHMxKSA9ICVkXG4iLCBzaXplb2Yoc3RydWN0IHMxKSk7CiAgICBwcmludGYoInNpemVvZihzdHJ1Y3QgczIpID0gJWRcbiIsIHNpemVvZihzdHJ1Y3QgczIpKTsKfQ==