]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/mach-o/flat_namespace_undef_error.yaml
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / mach-o / flat_namespace_undef_error.yaml
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
4 defined-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
13 undefined-atoms:
14   - name:            _bar
15
16 # Make sure we error out for -flat_namespace -undefined error.
17 # CHECK: Undefined symbol: : _bar