OSDN Git Service

New testcase
authorChris Lattner <sabre@nondot.org>
Sat, 5 Nov 2005 08:20:28 +0000 (08:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Nov 2005 08:20:28 +0000 (08:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24191 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/TailCallElim/return-undef.ll [new file with mode: 0644]

diff --git a/test/Transforms/TailCallElim/return-undef.ll b/test/Transforms/TailCallElim/return-undef.ll
new file mode 100644 (file)
index 0000000..116d451
--- /dev/null
@@ -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
+}