1f08c3bdfSopenharmony_cistatic int badr(void)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	int *a;
4f08c3bdfSopenharmony_ci	return *a;
5f08c3bdfSopenharmony_ci}
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_cistatic void badw(int v)
8f08c3bdfSopenharmony_ci{
9f08c3bdfSopenharmony_ci	int *a;
10f08c3bdfSopenharmony_ci	*a = v;
11f08c3bdfSopenharmony_ci}
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_ci/*
14f08c3bdfSopenharmony_ci * check-name: undef00
15f08c3bdfSopenharmony_ci * check-command: test-linearize -fdump-ir=mem2reg $file
16f08c3bdfSopenharmony_ci * check-output-ignore
17f08c3bdfSopenharmony_ci * check-output-pattern(1): load\\.
18f08c3bdfSopenharmony_ci * check-output-pattern(1): load\\..*\\[UNDEF\\]
19f08c3bdfSopenharmony_ci * check-output-pattern(1): store\\.
20f08c3bdfSopenharmony_ci * check-output-pattern(1): store\\..*\\[UNDEF\\]
21f08c3bdfSopenharmony_ci */
22