From 3e2245bd34b8b3544909b09a74741bcfc42a4331 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 5 Nov 2005 08:20:28 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24191 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/TailCallElim/return-undef.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Transforms/TailCallElim/return-undef.ll diff --git a/test/Transforms/TailCallElim/return-undef.ll b/test/Transforms/TailCallElim/return-undef.ll new file mode 100644 index 00000000000..116d451c639 --- /dev/null +++ b/test/Transforms/TailCallElim/return-undef.ll @@ -0,0 +1,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 +}