46 lines · yaml
1## Test that yaml2obj emits an error message if we specify the DWARF section2## contents both in the 'DWARF' entry and in the 'content'.3 4# RUN: not yaml2obj %s 2>&1 | FileCheck %s --check-prefix=CONFLICT5 6# CONFLICT: yaml2obj: error: cannot specify section '__debug_str' contents in the 'DWARF' entry and the 'content' at the same time7 8--- !mach-o9FileHeader:10 magic: 0xFEEDFACF11 cputype: 0x0100000712 cpusubtype: 0x0000000313 filetype: 0x0000000A14 ncmds: 115 sizeofcmds: 23216 flags: 0x0000000017 reserved: 0x0000000018LoadCommands:19 - cmd: LC_SEGMENT_6420 cmdsize: 15221 segname: __DWARF22 vmaddr: 0x0023 vmsize: 0x0024 fileoff: 0x0025 filesize: 0x0026 maxprot: 027 initprot: 028 nsects: 129 flags: 030 Sections:31 - sectname: __debug_str32 segname: __DWARF33 addr: 0x0034 size: 1235 offset: 52836 align: 037 reloff: 0x0000000038 nreloc: 039 flags: 0x0000000040 reserved1: 0x0000000041 reserved2: 0x0000000042 reserved3: 0x0000000043 content: 123444DWARF:45 debug_str: [ a, abc ]46