brintos

brintos / llvm-project-archived public Read only

0
0
Text · 881 B · e67d2eb Raw
23 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llc -filetype=obj -o %t/foo.o %S/Inputs/foo-ret-0.ll3# RUN: llc -filetype=obj -o %t/bar.o %S/Inputs/bar-ret-0.ll4# RUN: llvm-ar crs %t/libFoo.a %t/foo.o %t/bar.o5# RUN: llc -filetype=obj -o %t/main.o %S/Inputs/main-ret-0.ll6# RUN: llvm-jitlink -noexec -all_load -show-init-es %t/main.o -L%t -lFoo \7# RUN:     | FileCheck %s8#9# FIXME: Enable this test on Windows/arm64 once that backend is available.10# UNSUPPORTED: target=aarch64-{{.*}}-windows-{{.*}}11#12# On MinGW targets, when compiling the main() function, it gets13# an implicitly generated call to __main(), which is missing in14# this context.15# XFAIL: target={{.*}}-windows-gnu16#17# Check that the llvm-jitlink -all-load option loads all members of18# multi-file archives.19#20# CHECK-DAG: main{{.*}}main.o21# CHECK-DAG: foo{{.*}}libFoo.a[0](foo.o)22# CHECK-DAG: bar{{.*}}libFoo.a[1](bar.o)23