mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
26 lines
751 B
LLVM
26 lines
751 B
LLVM
; Do setup work for all below tests: generate bitcode and combined index
|
|
; RUN: opt -module-summary %s -o %t.bc
|
|
; RUN: opt -module-summary %p/Inputs/funcimport_alias.ll -o %t2.bc
|
|
; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc
|
|
|
|
; Do the import now. Ensures that the importer handles an external call
|
|
; from imported callanalias() to a function that is defined already in
|
|
; the dest module, but as an alias.
|
|
; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -S | FileCheck %s
|
|
|
|
define i32 @main() #0 {
|
|
entry:
|
|
call void @callanalias()
|
|
ret i32 0
|
|
}
|
|
|
|
@analias = alias void (), void ()* @globalfunc
|
|
|
|
define void @globalfunc() #0 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
declare void @callanalias() #1
|
|
; CHECK-DAG: define available_externally void @callanalias()
|