1f08c3bdfSopenharmony_cistruct s { 2f08c3bdfSopenharmony_ci int a, b, c; 3f08c3bdfSopenharmony_ci}; 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_cistruct s s_init_all(int a) 6f08c3bdfSopenharmony_ci{ 7f08c3bdfSopenharmony_ci struct s s = { .a = a, .b = 42, .c = 123, }; 8f08c3bdfSopenharmony_ci return s; 9f08c3bdfSopenharmony_ci} 10f08c3bdfSopenharmony_ci 11f08c3bdfSopenharmony_ci/* 12f08c3bdfSopenharmony_ci * check-name: struct implicit init zero not needed 13f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 14f08c3bdfSopenharmony_ci * check-known-to-fail 15f08c3bdfSopenharmony_ci * 16f08c3bdfSopenharmony_ci * check-output-start 17f08c3bdfSopenharmony_cis_init_all: 18f08c3bdfSopenharmony_ci.L4: 19f08c3bdfSopenharmony_ci <entry-point> 20f08c3bdfSopenharmony_ci store.32 %arg1 -> 0[s] 21f08c3bdfSopenharmony_ci store.32 $42 -> 4[s] 22f08c3bdfSopenharmony_ci store.32 $123 -> 8[s] 23f08c3bdfSopenharmony_ci load.96 %r8 <- 0[s] 24f08c3bdfSopenharmony_ci ret.96 %r8 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_ci 27f08c3bdfSopenharmony_ci * check-output-end 28f08c3bdfSopenharmony_ci */ 29