mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Add a test for r258362.
Thanks to Mehdi for finding it. llvm-svn: 259394
This commit is contained in:
parent
0a594deff4
commit
1cc73a0cb5
8
test/Linker/Inputs/funcimport2.ll
Normal file
8
test/Linker/Inputs/funcimport2.ll
Normal file
@ -0,0 +1,8 @@
|
||||
define linkonce_odr hidden void @foo() {
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @bar() {
|
||||
call void @foo()
|
||||
ret void
|
||||
}
|
17
test/Linker/funcimport2.ll
Normal file
17
test/Linker/funcimport2.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as -function-summary %s -o %t1.bc
|
||||
; RUN: llvm-as -function-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 -functionindex=%t3.thinlto.bc -S | FileCheck %s
|
||||
|
||||
; CHECK: define linkonce_odr 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user