Oops, make this test the right thing.
[oota-llvm.git] / test / Transforms / ScalarRepl / arraytest.ll
1 ; RUN: llvm-as < %s | opt -scalarrepl -mem2reg | llvm-dis | not grep alloca
2
3 int %test() {
4   %X = alloca [ 4 x int ]
5   %Y = getelementptr [4x int]* %X, long 0, long 0
6   store int 0, int* %Y
7
8   %Z = load int* %Y
9   ret int %Z
10 }