Files
clang-p2996/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test
Martin Storsjö 4c642b62b9 [llvm-jitlink] [test] Add an XFAIL for a JITLink test on MinGW
This testcase fails on MinGW targets, because when compiling the
main() function, it gets an implicit call to __main(), which is
missing in this context.
2024-03-01 12:16:47 +02:00

16 lines
537 B
Plaintext

# RUN: llc -filetype=obj -o %t.o %S/Inputs/main-ret-0.ll
# RUN: llvm-jitlink -noexec \
# RUN: -sectcreate __data,%S/Inputs/sectcreate-data.txt@foo=0 \
# RUN: %t.o
#
# Use -sectcreate to create a section from a data file.
# Jitlink does not support ARM64 COFF files.
# UNSUPPORTED: target=aarch64-pc-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
# jitlink-check: *{4}foo = 0x2a2a5a5a