blob: bf8f96b78da015890181ab88502e771ac77c3d8a [file] [log] [blame]
Mehdi Amini68da4262016-04-12 21:35:18 +00001; RUN: opt -module-summary %s -o %t1.bc
2; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc
Rafael Espindolaac60e5f2016-02-01 19:56:12 +00003; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
Teresa Johnson26ab5772016-03-15 00:04:37 +00004; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s
Rafael Espindolaac60e5f2016-02-01 19:56:12 +00005
Mehdi Aminibda3c972016-04-21 01:59:39 +00006; CHECK: define available_externally hidden void @foo() {
Rafael Espindolaac60e5f2016-02-01 19:56:12 +00007define 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}