xref: /llvm-project/llvm/test/tools/llvm-objdump/MachO/disassemble-symbol-same-addr.test (revision 68751651235562b27b83788a5da4d23e431443c1)
1# RUN: llvm-mc %s --triple x86_64-apple-darwin -filetype=obj -o %t.o
2# RUN: llvm-objdump --macho -d %t.o | FileCheck %s
3
4_foo:
5_bar:
6_baz:
7_qux:
8  nop
9
10## Ensure symbols with the same address are printed in a deterministic order
11# CHECK:      _foo
12# CHECK-NEXT: _bar
13# CHECK-NEXT: _baz
14# CHECK-NEXT: _qux
15