• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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() {
7 define available_externally hidden void @foo() {
8     ret void
9 }
10 
11 declare void @bar()
12 
13 define void @caller() {
14   call void @bar()
15   call void @foo()
16   ret void
17 }
18