1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-nm %t.o | FileCheck %s --check-prefix=DEFAULT
3 # RUN: llvm-nm --numeric-sort %t.o | FileCheck %s --check-prefix=NUMERIC
4 # RUN: llvm-nm -n %t.o | FileCheck %s --check-prefix=NUMERIC
5 # RUN: llvm-nm -v %t.o | FileCheck %s --check-prefix=NUMERIC
34 # The default is to sort by symbol name.
35 # DEFAULT: 0000000000000100 n symbol_a
36 # DEFAULT-NEXT: 0000000000000025 n symbol_b
37 # DEFAULT-NEXT: 0000000000000050 n symbol_c
38 # DEFAULT-NEXT: 0000000000000025 n symbol_d
40 # --numeric-sort sorts the symbols by value.
41 # NUMERIC: 0000000000000025 n symbol_b
42 # NUMERIC-NEXT: 0000000000000025 n symbol_d
43 # NUMERIC-NEXT: 0000000000000050 n symbol_c
44 # NUMERIC-NEXT: 0000000000000100 n symbol_a