summaryrefslogtreecommitdiff
path: root/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
blob: b2776592a9ca77f24e8b478cc41a80aacef4a536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Uninitialized values are not handled correctly.
;
; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg
;

implementation

int "test"()
begin
	%X = alloca int           ; To be promoted
	%Y = load int* %X
	ret int %Y
end