1; RUN: opt -module-summary %s -o %t1.bc
2; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc
3; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
4; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s
5
6; CHECK: define available_externally hidden void @foo() {
7define available_externally hidden void @foo() {
8    ret void
9}
10
11declare void @bar()
12
13define void @caller() {
14  call void @bar()
15  call void @foo()
16  ret void
17}
18