1f08c3bdfSopenharmony_cistatic int foo(volatile int *a, int v) 2f08c3bdfSopenharmony_ci{ 3f08c3bdfSopenharmony_ci *a = v; 4f08c3bdfSopenharmony_ci return *a; 5f08c3bdfSopenharmony_ci} 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci/* 8f08c3bdfSopenharmony_ci * check-name: cast-volatile 9f08c3bdfSopenharmony_ci * check-command: test-linearize -fdump-ir=linearize $file 10f08c3bdfSopenharmony_ci * 11f08c3bdfSopenharmony_ci * check-output-ignore 12f08c3bdfSopenharmony_ci * check-output-excludes: sext\\. 13f08c3bdfSopenharmony_ci * check-output-excludes: zext\\. 14f08c3bdfSopenharmony_ci * check-output-excludes: trunc\\. 15f08c3bdfSopenharmony_ci */ 16