From 170a0f7d6b39c13df34b5dae5cec108fa9ac3f0d Mon Sep 17 00:00:00 2001
From: Chris Lattner <sabre@nondot.org>
Date: Fri, 6 May 2005 06:47:37 +0000
Subject: [PATCH] Make sure to not accidentally get a bogus tail marker

llvm-svn: 21735
---
 test/Regression/Transforms/Inline/inline-tail.ll | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 test/Regression/Transforms/Inline/inline-tail.ll

diff --git a/test/Regression/Transforms/Inline/inline-tail.ll b/test/Regression/Transforms/Inline/inline-tail.ll
new file mode 100644
index 00000000000..f5eb62900d8
--- /dev/null
+++ b/test/Regression/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
+}