1# RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined error %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | FileCheck %s
2
3--- !native
4defined-atoms:
5  - name:            _main
6    scope:           global
7    content:         [ E9, 00, 00, 00, 00 ]
8    alignment:       16
9    references:
10      - kind:            branch32
11        offset:          1
12        target:          _bar
13undefined-atoms:
14  - name:            _bar
15
16# Make sure we error out for -flat_namespace -undefined error.
17# CHECK: Undefined symbol: : _bar
18