1# RUN: not ld64.lld -arch x86_64 -r %s \
2# RUN: %p/Inputs/wrong-arch-error.yaml 2> %t.err
3# RUN: FileCheck %s < %t.err
4
5--- !mach-o
6arch:            x86_64
7file-type:       MH_OBJECT
8flags:           [  ]
9has-UUID:        false
10OS:              unknown
11sections:
12  - segment:         __TEXT
13    section:         __text
14    type:            S_REGULAR
15    attributes:      [ S_ATTR_PURE_INSTRUCTIONS ]
16    address:         0x0000000000000000
17    content:         [ 0xCC ]
18
19global-symbols:
20  - name:            _foo
21    type:            N_SECT
22    scope:           [ N_EXT ]
23    sect:            1
24    value:           0x0000000000000000
25...
26
27
28# CHECK:       wrong architecture
29