xref: /llvm-project/lld/test/MachO/invalid/invalid-fat-offset.s (revision 643ec67a64ad7a686361b1d309e5088ad8f228e9)
1# REQUIRES: x86
2# RUN: yaml2obj %s -o %t.o
3# RUN: not %lld -o /dev/null %t.o 2>&1 | \
4# RUN:    FileCheck %s -DFILE=%t.o
5# CHECK: error: [[FILE]]: slice extends beyond end of file
6
7!fat-mach-o
8FatHeader:
9  magic:           0xCAFEBABE
10  nfat_arch:       2
11FatArchs:
12  - cputype:         0x01000007
13    cpusubtype:      0x00000003
14    offset:          0x0000000000001000
15    size:            0
16    align:           12
17  - cputype:         0x00000007
18    cpusubtype:      0x00000003
19    offset:          0x000000000000B000
20    size:            0
21    align:           12
22Slices:
23