1# RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined warning %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | \
2# RUN:   FileCheck --check-prefix=CHECK-WARNING %s
3# RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined suppress %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | \
4# RUN:   FileCheck --check-prefix=CHECK-SUPPRESS %s
5
6--- !native
7defined-atoms:
8  - name:            _main
9    scope:           global
10    content:         [ E9, 00, 00, 00, 00 ]
11    alignment:       16
12    references:
13      - kind:            branch32
14        offset:          1
15        target:          _bar
16undefined-atoms:
17  - name:            _bar
18
19# Make sure that the driver issues an error diagnostic about this combination
20# being invalid.
21#
22# CHECK-WARNING:  can't use -undefined warning or suppress with -twolevel_namespace
23# CHECK-SUPPRESS: can't use -undefined warning or suppress with -twolevel_namespace