2016-04-12 23:35:18 +02:00
|
|
|
; RUN: opt -module-summary %s -o %t1.bc
|
|
|
|
; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc
|
2016-02-01 20:56:12 +01:00
|
|
|
; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
|
2016-03-15 01:04:37 +01:00
|
|
|
; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s
|
2016-02-01 20:56:12 +01:00
|
|
|
|
2016-04-21 03:59:39 +02:00
|
|
|
; CHECK: define available_externally hidden void @foo() {
|
2016-02-01 20:56:12 +01:00
|
|
|
define available_externally hidden void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @bar()
|
|
|
|
|
|
|
|
define void @caller() {
|
|
|
|
call void @bar()
|
|
|
|
call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|