llvm/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll

14 lines
199 B
LLVM
Raw Normal View History

; Uninitialized values are not handled correctly.
;
; RUN: as < %s | opt -mem2reg
;
implementation
int "test"()
begin
%X = alloca int ; To be promoted
%Y = load int* %X
ret int %Y
end