From: Rafael Espindola Date: Tue, 8 Dec 2015 02:38:14 +0000 (+0000) Subject: Add a test showing that we internalize lazily linked GVs. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fcb0893d8819bd6e1aecb360c49d5476b3b2ac24;p=oota-llvm.git Add a test showing that we internalize lazily linked GVs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254989 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Linker/Inputs/internalize-lazy.ll b/test/Linker/Inputs/internalize-lazy.ll new file mode 100644 index 00000000000..43f9a7ab745 --- /dev/null +++ b/test/Linker/Inputs/internalize-lazy.ll @@ -0,0 +1,8 @@ +define linkonce_odr void @g() { + ret void +} + +define void @f() { + call void @g() + ret void +} diff --git a/test/Linker/internalize-lazy.ll b/test/Linker/internalize-lazy.ll new file mode 100644 index 00000000000..480335927b5 --- /dev/null +++ b/test/Linker/internalize-lazy.ll @@ -0,0 +1,4 @@ +; RUN: llvm-link -S -internalize %s %p/Inputs/internalize-lazy.ll | FileCheck %s + +; CHECK: define internal void @f +; CHECK: define internal void @g