xref: /llvm-project/llvm/test/tools/llvm-dwarfdump/X86/lc_malformed.test (revision 072f5180f2d33a3323a164fe19a7a477e93073a9)
1# RUN: yaml2obj %s | not llvm-dwarfdump --uuid - 2>&1 | FileCheck %s
2# CHECK: load command 0 filesize field in LC_SEGMENT_64 greater than vmsize field
3
4--- !mach-o
5FileHeader:
6  magic:           0xFEEDFACF
7  cputype:         0x01000007
8  cpusubtype:      0x00000003
9  filetype:        0x00000001
10  ncmds:           1
11  sizeofcmds:      24
12  flags:           0x00002000
13  reserved:        0x00000000
14LoadCommands:
15  - cmd:             LC_SEGMENT_64
16    cmdsize:         232
17    segname:         ''
18    vmaddr:          0
19    vmsize:          80
20    fileoff:         384
21    filesize:        81
22    maxprot:         7
23    initprot:        7
24    nsects:          1
25    flags:           0
26    Sections:
27      - sectname:        __text
28        segname:         __TEXT
29        addr:            0x0000000000000000
30        size:            15
31        offset:          0x00000180
32        align:           4
33        reloff:          0x00000000
34        nreloc:          0
35        flags:           0x80000400
36        reserved1:       0x00000000
37        reserved2:       0x00000000
38        reserved3:       0x00000000
39...
40