2003-06-29 01:23:34 +02:00
|
|
|
; RUN: as < %s | opt -scalarrepl -mem2reg | dis | not grep alloca
|
2003-05-27 17:51:17 +02:00
|
|
|
|
|
|
|
int %test() {
|
|
|
|
%X = alloca { int, float }
|
|
|
|
%Y = getelementptr {int,float}* %X, long 0, ubyte 0
|
|
|
|
store int 0, int* %Y
|
|
|
|
|
|
|
|
%Z = load int* %Y
|
|
|
|
ret int %Z
|
|
|
|
}
|