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