14 lines · plain
1; This first line will generate the .o files for the next run line2; RUN: rm -rf %t && mkdir -p %t3; RUN: llc -filetype=obj -o %t/foo.o %p/Inputs/foo-return-i32-0.ll4; RUN: llc -filetype=obj -o %t/bar.o %p/Inputs/bar-return-i32-call-foo.ll5; RUN: llvm-ar r %t/staticlib.a %t/foo.o %t/bar.o6; RUN: lli -jit-kind=orc-lazy -extra-archive %t/staticlib.a %s7 8declare i32 @bar()9 10define i32 @main() {11 %r = call i32 @bar() ; <i32> [#uses=1]12 ret i32 %r13}14