aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 06:47:37 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 06:47:37 +0000
commit2f4251bfbe2a6d3820534f024d4e4a2a6abf310b (patch)
treeef306985e56a3aa0bab984387b02c5f8ad0619ff /test/Transforms/Inline
parent1430ef134d36888b99d2e6fedd2b025882593538 (diff)
downloadexternal_llvm-2f4251bfbe2a6d3820534f024d4e4a2a6abf310b.zip
external_llvm-2f4251bfbe2a6d3820534f024d4e4a2a6abf310b.tar.gz
external_llvm-2f4251bfbe2a6d3820534f024d4e4a2a6abf310b.tar.bz2
Make sure to not accidentally get a bogus tail marker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Inline')
-rw-r--r--test/Transforms/Inline/inline-tail.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/Inline/inline-tail.ll b/test/Transforms/Inline/inline-tail.ll
new file mode 100644
index 0000000..f5eb629
--- /dev/null
+++ b/test/Transforms/Inline/inline-tail.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep tail
+
+implementation
+
+declare void %bar(int*)
+
+internal void %foo(int* %P) { ;; to be inlined
+ tail call void %bar(int* %P)
+ ret void
+}
+
+void %caller() {
+ %A = alloca int
+ call void %foo(int* %A) ;; not a tail call
+ ret void
+}