blob: b7e0a295e380a2626fc1ac7cebc61bed26374200 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -mem2reg | llvm-dis | not grep alloca
2
3int %test() {
4 %X = alloca { int, float }
5 %Y = getelementptr {int,float}* %X, long 0, uint 0
6 store int 0, int* %Y
7
8 %Z = load int* %Y
9 ret int %Z
10}