repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
ExecutionEngine
/
Orc
/
trivial-call-to-function.ll
blob
57e00a10ad4b6a3ec3ce14a6d190bdfaa9aa40d0
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
9
define i32 @foo() {
10
ret i32 0
11
}
12
13
define i32 @main(i32 %argc, i8** %argv) {
14
entry:
15
%0 = call i32 @foo()
16
ret i32 %0
17
}