llvm.org GIT mirror llvm / 268ab86
Add missing test case for r198737. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198772 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 6 years ago
1 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; REQUIRES: shell
1
2 ; This first line will generate the .o files for the next run line
3 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager %s
4
5 ; This line tests MCJIT object loading
6 ; RUN: %lli_mcjit -extra-object=%p/Inputs/multi-module-b.o -extra-object=%p/Inputs/multi-module-c.o %s
7
8 ; These lines put the object files into an archive
9 ; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-b.o
10 ; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-c.o
11
12 ; This line test MCJIT archive loading
13 ; RUN: %lli_mcjit -extra-archive=%p/Inputs/load-object.a %s
14
15 ; These lines clean up our temporary files
16 ; RUN: rm -f %p/Inputs/load-object-a.o
17 ; RUN: rm -f %p/Inputs/multi-module-b.o
18 ; RUN: rm -f %p/Inputs/multi-module-c.o
19 ; RUN: rm -f %p/Inputs/load-object.a
20
21 declare i32 @FB()
22
23 define i32 @main() {
24 %r = call i32 @FB( ) ; [#uses=1]
25 ret i32 %r
26 }