summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/OrcLazy/static-library-support.ll
blob: 304160c7f787f0b9e9ef6644e67e11b98d34341d (plain)
1
2
3
4
5
6
7
8
9
10
11
; This first line will generate the .o files for the next run line
; RUN: llc -filetype=obj -o %t.o %p/Inputs/basic-object-source.ll
; RUN: llvm-ar r %t.a %t.o
; RUN: lli -jit-kind=orc-lazy -extra-archive %t.a %s

declare i32 @foo()

define i32 @main() {
  %r = call i32 @foo( )   ; <i32> [#uses=1]
  ret i32 %r
}
OpenPOWER on IntegriCloud