1# RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s \
2# RUN: %p/Inputs/native-and-mach-o.objtxt  \
3# RUN: %p/Inputs/native-and-mach-o2.objtxt -o %t  && \
4# RUN: llvm-nm %t | FileCheck %s
5#
6# Test a mix of atoms and mach-o both encoded in yaml
7#
8
9--- !native
10defined-atoms:
11    - name:              _main
12      type:              code
13      scope:             global
14      content:           [ 55, 48, 89, E5, 30, C0, E8, 00,
15                           00, 00, 00, 31, C0, 5D, C3 ]
16      references:
17      - offset:          7
18        kind:            branch32
19        target:          _foo
20
21undefined-atoms:
22 - name:                _foo
23
24...
25
26# CHECK:	{{[0-9a-f]+}} T _foo
27# CHECK:	{{[0-9a-f]+}} T _main
28