1 # REQUIRES: system-linker-mach-o
3 # RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.8 %s \
4 # RUN: -dylib -o %t %p/Inputs/x86_64/libSystem.yaml 2> %t.err
5 # RUN: FileCheck %s < %t.err
7 # RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.8 %s \
8 # RUN: -dylib -o %t %p/Inputs/x86_64/libSystem.yaml -demangle 2> %t.err2
9 # RUN: FileCheck %s --check-prefix=DCHECK < %t.err2
11 # Test -demangle option works on undefined symbol errors.
17 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
22 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
23 address: 0x0000000000000000
24 content: [ 0xE8, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00,
25 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00 ]
28 type: X86_64_RELOC_BRANCH
34 type: X86_64_RELOC_BRANCH
40 type: X86_64_RELOC_BRANCH
50 value: 0x0000000000000000
55 value: 0x0000000000000000
59 value: 0x0000000000000000
63 value: 0x0000000000000000
72 # DCHECK: operator new[](unsigned long)