# RUN: not lld -flavor darwin -arch x86_64 -r %s %p/Inputs/hello-world-x86_64.yaml 2>&1 | FileCheck %s

--- !mach-o
arch:            x86_64
file-type:       MH_OBJECT
flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
compat-version:  0.0
current-version: 0.0
has-UUID:        false
OS:              unknown
sections:
  - segment:         __DATA
    section:         __objc_imageinfo
    type:            S_REGULAR
    attributes:      [ S_ATTR_NO_DEAD_STRIP ]
    address:         0x0000000000000100
    content:         [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]
...

# CHECK: error: __DATA/__objc_imageinfo in file {{.*}} should be 8 bytes in size
# RUN: not lld -flavor darwin -arch x86_64 -r %s 2>&1 | FileCheck %s

--- !mach-o
arch:            x86_64
file-type:       MH_OBJECT
flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
compat-version:  0.0
current-version: 0.0
has-UUID:        false
OS:              unknown
sections:
  - segment:         __DATA
    section:         __objc_imageinfo
    type:            S_REGULAR
    attributes:      [ S_ATTR_NO_DEAD_STRIP ]
    address:         0x0000000000000100
    content:         [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]
...

# CHECK: error: __DATA/__objc_imageinfo in file {{.*}} should be 8 bytes in size
Remove unnecessary extra linked file in RUN line. NFC.
Remove unnecessary extra linked file in RUN line.  NFC.

This test case was already suitably self-contained that linking against the
helloworld file added no value.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@257954 91177308-0d34-0410-b5e6-96231b3b80d8
