From 2f4251bfbe2a6d3820534f024d4e4a2a6abf310b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 May 2005 06:47:37 +0000 Subject: 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 --- test/Transforms/Inline/inline-tail.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Transforms/Inline/inline-tail.ll (limited to 'test/Transforms') 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 +} -- cgit v1.1