summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-25 21:49:53 +0000
committerChris Lattner <sabre@nondot.org>2007-06-25 21:49:53 +0000
commit4939debe2af6cd57e4be993bc70a3a5d2a678bbd (patch)
treea78fac8be15718bd840a2f85f3b7758fe3bfdba5 /test
parent9030d384c404ef2d28e2464cddcfbea268a12109 (diff)
downloadllvm-4939debe2af6cd57e4be993bc70a3a5d2a678bbd.tar.gz
llvm-4939debe2af6cd57e4be993bc70a3a5d2a678bbd.tar.bz2
llvm-4939debe2af6cd57e4be993bc70a3a5d2a678bbd.tar.xz
new testcase, the inliner shouldn't inline this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/2007-06-25-WeakInline.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/Inline/2007-06-25-WeakInline.ll b/test/Transforms/Inline/2007-06-25-WeakInline.ll
new file mode 100644
index 0000000000..3cf758ca8c
--- /dev/null
+++ b/test/Transforms/Inline/2007-06-25-WeakInline.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | opt -inline | llvm-dis | grep call
+
+; 'bar' can be overridden at link-time, don't inline it.
+
+define void @foo() {
+entry:
+ tail call void @bar( ) ; <i32> [#uses=0]
+ ret void
+}
+
+define weak void @bar() {
+ ret void
+}
+