aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/IntPtrCast.ll
blob: c30498279deac4ff61b99aee891c10c701726e79 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
target pointersize = 32

int *%test(int *%P) {
	%V = cast int* %P to int
	%P2 = cast int %V to int*
	ret int* %P2
}