blob: e6fe1a63793725872074388eb531a45ad042a32e [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -mem2reg | llvm-dis | not grep alloca
Chris Lattner016d7b92003-05-27 15:51:17 +00002
3int %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}