From 4939debe2af6cd57e4be993bc70a3a5d2a678bbd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 25 Jun 2007 21:49:53 +0000 Subject: [PATCH] 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 --- test/Transforms/Inline/2007-06-25-WeakInline.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Transforms/Inline/2007-06-25-WeakInline.ll 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 00000000000..3cf758ca8c8 --- /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( ) ; [#uses=0] + ret void +} + +define weak void @bar() { + ret void +} + -- 2.34.1