summaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim/return-undef.ll
blob: 116d451c639e7cb2922df6dc9d44f55353b3562c (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | grep sub &&
; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call

int %test(int %X) {
	%Y = sub int %X, 1
	%Z = call int %test(int %Y)
	ret int undef
}