aboutsummaryrefslogtreecommitdiff
path: root/test/mach-o/flat_namespace_undef_error.yaml
blob: 904b9c776e597679150727603120a4a802a6bf56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined error %s -o %t %p/Inputs/libSystem.yaml 2>&1 | FileCheck %s

--- !native
defined-atoms:
  - name:            _main
    scope:           global
    content:         [ E9, 00, 00, 00, 00 ]
    alignment:       16
    references:
      - kind:            branch32
        offset:          1
        target:          _bar
undefined-atoms:
  - name:            _bar

# Make sure we error out for -flat_namespace -undefined error.
# CHECK: Undefined symbol: : _bar