mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-25 12:46:21 -04:00
dae6a45f28
minimal.ll contains a main function that returns zero, and single-function-call.ll contains a main function that calls a foo function that returns zero. These minimal tests can help to rule out some trivial JIT bugs when other tests fail. This commit also renames hello.ll to global-ctors-and-dtors.ll, which better reflects what it is actually testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344863 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
330 B
LLVM
16 lines
330 B
LLVM
; 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
|
|
}
|