xref: /llvm-project/llvm/test/ExecutionEngine/OrcLazy/basic-object-file-loading.ll (revision 2d56d8c4e8751c7e2cab927cdeb4e519af3f3585)
1; RUN: llc -filetype=obj -o %t %p/Inputs/foo-return-i32-0.ll
2; RUN: lli -jit-kind=orc-lazy -extra-object %t %s
3;
4; Check that we can load an object file and call a function in it.
5
6declare i32 @foo()
7
8define i32 @main(i32 %argc, ptr %argv) {
9entry:
10  %0 = call i32 @foo()
11  ret i32 %0
12}
13
14