llvm-for-llvmta/test/ExecutionEngine/OrcLazy/static-library-support.ll

14 lines
453 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; This first line will generate the .o files for the next run line
; RUN: rm -rf %t && mkdir -p %t
; RUN: llc -filetype=obj -o %t/foo.o %p/Inputs/foo-return-i32-0.ll
; RUN: llc -filetype=obj -o %t/bar.o %p/Inputs/bar-return-i32-call-foo.ll
; RUN: llvm-ar r %t/staticlib.a %t/foo.o %t/bar.o
; RUN: lli -jit-kind=orc-lazy -extra-archive %t/staticlib.a %s
declare i32 @bar()
define i32 @main() {
%r = call i32 @bar() ; <i32> [#uses=1]
ret i32 %r
}