xref: /llvm-project/llvm/test/ExecutionEngine/Orc/trivial-call-to-function.ll (revision 563ce9aa4ab22f10e0aa2799a3562a65a629ad0a)
1; Check that we can execute a program that makes a single call to an external
2; linkage function that returns zero.
3;
4; Failure may indicate a problem with branch, GOT, or PLT relocation handling
5; in the JIT linker.
6;
7; RUN: %lli %s
8
9define i32 @foo() {
10  ret i32 0
11}
12
13define i32 @main(i32 %argc, i8** %argv) {
14entry:
15  %0 = call i32 @foo()
16  ret i32 %0
17}
18