llvm-for-llvmta/test/ExecutionEngine/OrcLazy/single-function-call.ll

16 lines
330 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: lli -jit-kind=orc-lazy %s
;
; Basic sanity check: We can make a call inside lazily JIT'd code.
; Compared to minimal.ll, this demonstrates that we can call through a stub.
define i32 @foo() {
entry:
ret i32 0
}
define i32 @main(i32 %argc, i8** nocapture readnone %argv) {
entry:
%0 = call i32() @foo()
ret i32 %0
}