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

%Ty = type opaque

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