We have a mix of substituted lld (`%lld`) and hard-coded lld (`ld64.lld`) commands. When testing with different versions of LLD, this would require going into every place where lld is hard-coded and changing that. If we centralize it, this'll only require us to modify it in only one place and will make it easy to run the same test suite. Plus, this will make it be consistent with how we write other tests. Reviewed By: #lld-macho, int3, oontvoo Differential Revision: https://reviews.llvm.org/D119394
22 lines
770 B
ArmAsm
22 lines
770 B
ArmAsm
## FIXME: This test seems to be failing on some Google Mac buildbots for
|
|
## unclear reasons, so it's disabled for now. See D85404 for details.
|
|
# UNSUPPORTED: darwin
|
|
# REQUIRES: x86
|
|
|
|
# RUN: mkdir -p %t
|
|
#
|
|
# RUN: llvm-mc -filetype obj -triple x86_64-apple-ios %s -o %t/test.o
|
|
# RUN: not %no-arg-lld -arch x86_64 -platform_version ios 14.0 15.0 -o %t/test \
|
|
# RUN: -syslibroot %S/../Inputs/iPhoneSimulator.sdk -lSystem %t/test.o 2>&1 | FileCheck %s
|
|
|
|
# CHECK-DAG: error: undefined symbol: __cache_handle_memory_pressure_event
|
|
# CHECK-DAG: error: undefined symbol: _from_non_reexported_tapi_dylib
|
|
|
|
.section __TEXT,__text
|
|
.global _main
|
|
|
|
_main:
|
|
movq __cache_handle_memory_pressure_event@GOTPCREL(%rip), %rax
|
|
movq _from_non_reexported_tapi_dylib@GOTPCREL(%rip), %rax
|
|
ret
|