1 ; RUN: opt < %s -scalarrepl -S | grep {load volatile} 2 ; RUN: opt < %s -scalarrepl -S | grep {store volatile} 3 4 define i32 @voltest(i32 %T) { 5 %A = alloca {i32, i32} 6 %B = getelementptr {i32,i32}* %A, i32 0, i32 0 7 volatile store i32 %T, i32* %B 8 9 %C = getelementptr {i32,i32}* %A, i32 0, i32 1 10 %X = volatile load i32* %C 11 ret i32 %X 12 } 13