1f08c3bdfSopenharmony_cistruct bfu { 2f08c3bdfSopenharmony_ci unsigned int a:11; 3f08c3bdfSopenharmony_ci unsigned int f:9; 4f08c3bdfSopenharmony_ci unsigned int z:3; 5f08c3bdfSopenharmony_ci}; 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_cistruct bfu bfu_init_00_11(int a) 8f08c3bdfSopenharmony_ci{ 9f08c3bdfSopenharmony_ci struct bfu bfu = { .a = a, }; 10f08c3bdfSopenharmony_ci return bfu; 11f08c3bdfSopenharmony_ci} 12f08c3bdfSopenharmony_ci 13f08c3bdfSopenharmony_cistruct bfu bfu_init_20_23(int a) 14f08c3bdfSopenharmony_ci{ 15f08c3bdfSopenharmony_ci struct bfu bfu = { .z = a, }; 16f08c3bdfSopenharmony_ci return bfu; 17f08c3bdfSopenharmony_ci} 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ci/* 20f08c3bdfSopenharmony_ci * check-name: bitfield initializer mask 21f08c3bdfSopenharmony_ci * check-command: test-linearize -fdump-ir=linearize -Wno-decl $file 22f08c3bdfSopenharmony_ci * check-output-ignore 23f08c3bdfSopenharmony_ci * 24f08c3bdfSopenharmony_ci * check-output-contains: and\\..*fffff800\$ 25f08c3bdfSopenharmony_ci * check-output-contains: shl\\..* \\$20 26f08c3bdfSopenharmony_ci * check-output-contains: and\\..*ff8fffff\$ 27f08c3bdfSopenharmony_ci */ 28