1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-nm %t.o | FileCheck %s --check-prefix=DEFAULT
3 # RUN: llvm-nm --no-sort %t.o | FileCheck %s --check-prefix=NOSORT
4 # RUN: llvm-nm -p %t.o | FileCheck %s --check-prefix=NOSORT
29 # The default is to sort by symbol name.
30 # DEFAULT: 0000000000000100 n symbol_a
31 # DEFAULT-NEXT: 0000000000000025 n symbol_b
32 # DEFAULT-NEXT: 0000000000000050 n symbol_c
33 # DEFAULT-NEXT: 0000000000000025 n symbol_d
35 # When --no-sort is specified then the symbols are output in
37 # NOSORT: 0000000000000100 n symbol_a
38 # NOSORT-NEXT: 0000000000000025 n symbol_b
39 # NOSORT-NEXT: 0000000000000025 n symbol_d
40 # NOSORT-NEXT: 0000000000000050 n symbol_c