llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/all-load-multifile-archive.test
Martin Storsjö 902d6894f5 [JITLink] [test] Add a trailing newline to a test file. NFC.
Otherwise, this shows up as an unrelated diff after editing the
file in some editors (like vim).
2025-06-10 12:08:24 +03:00

23 lines
881 B
Plaintext

# RUN: rm -rf %t && mkdir -p %t
# RUN: llc -filetype=obj -o %t/foo.o %S/Inputs/foo-ret-0.ll
# RUN: llc -filetype=obj -o %t/bar.o %S/Inputs/bar-ret-0.ll
# RUN: llvm-ar crs %t/libFoo.a %t/foo.o %t/bar.o
# RUN: llc -filetype=obj -o %t/main.o %S/Inputs/main-ret-0.ll
# RUN: llvm-jitlink -noexec -all_load -show-init-es %t/main.o -L%t -lFoo \
# RUN: | FileCheck %s
#
# FIXME: Enable this test on Windows/arm64 once that backend is available.
# UNSUPPORTED: target=aarch64-{{.*}}-windows-{{.*}}
#
# On MinGW targets, when compiling the main() function, it gets
# an implicitly generated call to __main(), which is missing in
# this context.
# XFAIL: target={{.*}}-windows-gnu
#
# Check that the llvm-jitlink -all-load option loads all members of
# multi-file archives.
#
# CHECK-DAG: main{{.*}}main.o
# CHECK-DAG: foo{{.*}}libFoo.a[0](foo.o)
# CHECK-DAG: bar{{.*}}libFoo.a[1](bar.o)