18 lines · plain
1; RUN: opt -module-summary %s -o %t1.bc2; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc3; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc4; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s5 6; CHECK: define available_externally hidden void @foo() {7define available_externally hidden void @foo() {8 ret void9}10 11declare void @bar()12 13define void @caller() {14 call void @bar()15 call void @foo()16 ret void17}18