1f08c3bdfSopenharmony_cistatic int foo(volatile int *a, int v) 2f08c3bdfSopenharmony_ci{ 3f08c3bdfSopenharmony_ci *a = v; 4f08c3bdfSopenharmony_ci *a = 0; 5f08c3bdfSopenharmony_ci return *a; 6f08c3bdfSopenharmony_ci} 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ci/* 9f08c3bdfSopenharmony_ci * check-name: memops-volatile 10f08c3bdfSopenharmony_ci * check-command: test-linearize $file 11f08c3bdfSopenharmony_ci * 12f08c3bdfSopenharmony_ci * check-output-ignore 13f08c3bdfSopenharmony_ci * check-output-contains: store\\..*%arg2 -> 0\\[%arg1] 14f08c3bdfSopenharmony_ci * check-output-contains: store\\..*\\$0 -> 0\\[%arg1] 15f08c3bdfSopenharmony_ci * check-output-contains: load\\..*%r.* <- 0\\[%arg1] 16f08c3bdfSopenharmony_ci */ 17