blob: fc795fede55bbbc7a51859afbc93c0c39d0171a1 [file] [log] [blame]
Lang Hames7b6f99f2014-01-08 16:31:16 +00001; REQUIRES: shell
2
3; This first line will generate the .o files for the next run line
4; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager %s
5
6; This line tests MCJIT object loading
7; RUN: %lli_mcjit -extra-object=%p/Inputs/multi-module-b.o -extra-object=%p/Inputs/multi-module-c.o %s
8
9; These lines put the object files into an archive
10; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-b.o
11; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-c.o
12
13; This line test MCJIT archive loading
14; RUN: %lli_mcjit -extra-archive=%p/Inputs/load-object.a %s
15
16; These lines clean up our temporary files
17; RUN: rm -f %p/Inputs/load-object-a.o
18; RUN: rm -f %p/Inputs/multi-module-b.o
19; RUN: rm -f %p/Inputs/multi-module-c.o
20; RUN: rm -f %p/Inputs/load-object.a
21
22declare i32 @FB()
23
24define i32 @main() {
25 %r = call i32 @FB( ) ; <i32> [#uses=1]
26 ret i32 %r
27}