15 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=arm64-apple-darwin19 -filetype=obj -o %t/main.o \3# RUN: %S/Inputs/MachO_main_ret_foo.s4# RUN: llvm-jitlink -noexec %t/main.o -weak_library \5# RUN: %S/Inputs/MachO_Foo_arm64.tbd6# RUN: llvm-jitlink -noexec %t/main.o -weak_library \7# RUN: %S/Inputs/MachO_Foo_arm64e.tbd8#9# Check that we can load main.o, which unconditionally uses symbol foo, by10# using -weak_library on a TBD file to emulate forced weak linking against11# a library that supplies foo, but is missing at runtime.12#13# Check that weak linking works for arm64 JIT'd programs even if the TBD14# file contains only an arm64e interface.15