blob: 22e84f8b832112cfbd9721cdc739f31cae32317a [file] [log] [blame]
Chris Lattner016d7b92003-05-27 15:51:17 +00001; RUN: as < %s | opt -scalarrepl -mem2reg | dis | grep alloca
2
3int %test() {
4 %X = alloca [ 4 x int ]
5 %Y = getelementptr [4x int]* %X, long 0, long 6 ; Off end of array!
6 store int 0, int* %Y
7
8 %Z = load int* %Y
9 ret int %Z
10}