1# RUN: not ld64.lld.darwinold -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 multiple.
5#
6
7--- !mach-o
8arch:            x86_64
9file-type:       MH_OBJECT
10flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
11has-UUID:        false
12OS:              unknown
13sections:
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
26