llvm.org GIT mirror llvm / e361154
Add a test for r258362. Thanks to Mehdi for finding it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259394 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
2 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 define linkonce_odr hidden void @foo() {
1 ret void
2 }
3
4 define void @bar() {
5 call void @foo()
6 ret void
7 }
0 ; RUN: llvm-as -function-summary %s -o %t1.bc
1 ; RUN: llvm-as -function-summary %p/Inputs/funcimport2.ll -o %t2.bc
2 ; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
3 ; RUN: llvm-link -import=bar:%t2.bc %t1.bc -functionindex=%t3.thinlto.bc -S | FileCheck %s
4
5 ; CHECK: define linkonce_odr hidden void @foo() {
6 define available_externally hidden void @foo() {
7 ret void
8 }
9
10 declare void @bar()
11
12 define void @caller() {
13 call void @bar()
14 call void @foo()
15 ret void
16 }