Files
clang-p2996/lld/test/MachO/invalid/invalid-fat-offset.s
Jez Ng 643ec67a64 [lld-macho] Always include custom syslibroot when running tests
This greatly reduces the amount of boilerplate in our tests.

Reviewed By: #lld-macho, compnerd

Differential Revision: https://reviews.llvm.org/D87960
2020-09-25 11:28:36 -07:00

23 lines
575 B
ArmAsm

# REQUIRES: x86
# RUN: yaml2obj %s -o %t.o
# RUN: not %lld -o /dev/null %t.o 2>&1 | \
# RUN: FileCheck %s -DFILE=%t.o
# CHECK: error: [[FILE]]: slice extends beyond end of file
!fat-mach-o
FatHeader:
magic: 0xCAFEBABE
nfat_arch: 2
FatArchs:
- cputype: 0x01000007
cpusubtype: 0x00000003
offset: 0x0000000000001000
size: 0
align: 12
- cputype: 0x00000007
cpusubtype: 0x00000003
offset: 0x000000000000B000
size: 0
align: 12
Slices: