1f08c3bdfSopenharmony_ciint test_array(int i)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	static const int a[3] = { 1, 2, 3, };
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ci	return a[1];
6f08c3bdfSopenharmony_ci}
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ci/*
9f08c3bdfSopenharmony_ci * check-name: constant-init-array
10f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl -fdump-ir $file
11f08c3bdfSopenharmony_ci *
12f08c3bdfSopenharmony_ci * check-output-ignore
13f08c3bdfSopenharmony_ci * check-output-excludes: phisrc\\..*return.*\\$2
14f08c3bdfSopenharmony_ci * check-output-contains: load\\.
15f08c3bdfSopenharmony_ci */
16