diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:47:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:47:37 +0000 |
commit | 2f4251bfbe2a6d3820534f024d4e4a2a6abf310b (patch) | |
tree | ef306985e56a3aa0bab984387b02c5f8ad0619ff /test/Transforms/Inline | |
parent | 1430ef134d36888b99d2e6fedd2b025882593538 (diff) | |
download | external_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.ll | 16 |
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 +} |