summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/OrcLazy/single-function-call.ll
blob: fba52026660da2b8b9188be257fbf9338ae0b48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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
}
OpenPOWER on IntegriCloud