summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll
blob: 8e8f019c6618b10e49525186ba5f06e046c42596 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output

%Ty = type opaque

int %test(%Ty *%X) {
	%Y = cast %Ty* %X to int*
	%Z = load int* %Y
	ret int %Z
}