1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/Linker/funcimport2.ll

18 lines
459 B
LLVM
Raw Normal View History

; RUN: opt -module-summary %s -o %t1.bc
; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc
; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s
; CHECK: define available_externally hidden void @foo() {
define available_externally hidden void @foo() {
ret void
}
declare void @bar()
define void @caller() {
call void @bar()
call void @foo()
ret void
}