]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/mach-o/parse-literals-error.yaml
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / mach-o / parse-literals-error.yaml
1 # RUN: not lld -flavor darwin -arch x86_64 -r -print_atoms %s -o %t 2> %t.err
2 # RUN: FileCheck %s < %t.err
3 #
4 # Test for error if literal section is not correct size mulitple.
5 #
6
7 --- !mach-o
8 arch:            x86_64
9 file-type:       MH_OBJECT
10 flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
11 has-UUID:        false
12 OS:              unknown
13 sections:
14   - segment:         __TEXT
15     section:         __literal8
16     type:            S_8BYTE_LITERALS
17     attributes:      [  ]
18     alignment:       0
19     address:         0x0000000000000120
20     content:         [ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
21                        0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D ]
22 ...
23
24 # CHECK:       error: 
25