xref: /llvm-project/llvm/test/ExecutionEngine/Orc/trivial-call-to-internal-function.ll (revision 563ce9aa4ab22f10e0aa2799a3562a65a629ad0a)
1; Check that we can execute a program that makes a single call to an internal
2; linkage function that returns zero.
3;
4; Failure may indicate a problem with branch relocation handling in the JIT
5; linker.
6;
7; RUN: %lli %s
8
9define internal 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