aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/TailCallElim/return-undef.ll
blob: b7d2f816495f80baec730b47594daccb06d33e0a (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis > %t
; RUN: grep sub %t
; RUN: not grep call %t

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