Debian Codegraph @

llvm/test/ObjectYAML/MachO/dwarf-content-conflict.yaml

raw
1 ## Test that yaml2obj emits an error message if we specify the DWARF section
2 ## contents both in the 'DWARF' entry and in the 'content'.
3
4 # RUN: not yaml2obj %s 2>&1 | FileCheck %s --check-prefix=CONFLICT
5
6 # CONFLICT: yaml2obj: error: cannot specify section '__debug_str' contents in the 'DWARF' entry and the 'content' at the same time
7
8 --- !mach-o
9 FileHeader:
10 magic: 0xFEEDFACF
11 cputype: 0x01000007
12 cpusubtype: 0x00000003
13 filetype: 0x0000000A
14 ncmds: 1
15 sizeofcmds: 232
16 flags: 0x00000000
17 reserved: 0x00000000
18 LoadCommands:
19 - cmd: LC_SEGMENT_64
20 cmdsize: 152
21 segname: __DWARF
22 vmaddr: 0x00
23 vmsize: 0x00
24 fileoff: 0x00
25 filesize: 0x00
26 maxprot: 0
27 initprot: 0
28 nsects: 1
29 flags: 0
30 Sections:
31 - sectname: __debug_str
32 segname: __DWARF
33 addr: 0x00
34 size: 12
35 offset: 528
36 align: 0
37 reloff: 0x00000000
38 nreloc: 0
39 flags: 0x00000000
40 reserved1: 0x00000000
41 reserved2: 0x00000000
42 reserved3: 0x00000000
43 content: 1234
44 DWARF:
45 debug_str: [ a, abc ]