reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
; RUN: llc -filetype=obj -o %t %p/Inputs/basic-object-source.ll
; RUN: lli -jit-kind=orc-lazy -extra-object %t %s
;
; Check that we can load an object file and call a function in it.

declare i32 @foo()

define i32 @main(i32 %argc, i8** %argv) {
entry:
  %0 = call i32 @foo()
  ret i32 %0
}