1# RUN: not ld64.lld -ios_simulator_version_min 5.0 -arch x86_64 -r %s 2>&1 | FileCheck %s
2
3# The file is built for the simulator, but the objc image info flags are for
4# the host.
5
6--- !mach-o
7arch:            x86_64
8file-type:       MH_OBJECT
9flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
10compat-version:  0.0
11current-version: 0.0
12has-UUID:        false
13OS:              unknown
14sections:
15  - segment:         __DATA
16    section:         __objc_imageinfo
17    type:            S_REGULAR
18    attributes:      [ S_ATTR_NO_DEAD_STRIP ]
19    address:         0x0000000000000100
20    content:         [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]
21...
22
23# CHECK: {{.*}} cannot be linked.  It contains ObjC built for a non-simulator target while we are linking a simulator target