aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/2007-06-25-WeakInline.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/Inline/2007-06-25-WeakInline.ll')
-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 0000000..3cf758c
--- /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
+}
+