brintos

brintos / llvm-project-archived public Read only

0
0
Text · 288 B · 421ff53 Raw
14 lines · plain
1; RUN: llc -filetype=obj -o %t %p/Inputs/foo-return-i32-0.ll2; RUN: lli -jit-kind=orc-lazy -extra-object %t %s3;4; Check that we can load an object file and call a function in it.5 6declare i32 @foo()7 8define i32 @main(i32 %argc, ptr %argv) {9entry:10  %0 = call i32 @foo()11  ret i32 %012}13 14