1f08c3bdfSopenharmony_cistruct s {
2f08c3bdfSopenharmony_ci	int a;
3f08c3bdfSopenharmony_ci	int b;
4f08c3bdfSopenharmony_ci	int c;
5f08c3bdfSopenharmony_ci};
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ciint test_struct(void)
9f08c3bdfSopenharmony_ci{
10f08c3bdfSopenharmony_ci	struct s s = { .a = 1, .c = 3, };
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ci	return s.b;
13f08c3bdfSopenharmony_ci}
14f08c3bdfSopenharmony_ci
15f08c3bdfSopenharmony_ci/*
16f08c3bdfSopenharmony_ci * check-name: default-init-struct
17f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl -fdump-ir $file
18f08c3bdfSopenharmony_ci *
19f08c3bdfSopenharmony_ci * check-output-ignore
20f08c3bdfSopenharmony_ci * check-output-contains: phisrc\\..*return.*\\$0
21f08c3bdfSopenharmony_ci * check-output-excludes: load\\.
22f08c3bdfSopenharmony_ci */
23