Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-nm / X86 / size-sort.test
blob64ea99e35b1f7e4ed4fadfbbfea16e5145080dfd
1 # RUN: llvm-nm --size-sort %p/Inputs/hello.obj.elf-x86_64 | FileCheck --check-prefix=SIZE-SORT-NO-ADDR %s
2 # RUN: llvm-nm --size-sort -S %p/Inputs/hello.obj.elf-x86_64 | FileCheck --check-prefix=SIZE-SORT-PRINT-ADDR %s
3 # RUN: llvm-nm -S %p/Inputs/hello.obj.elf-x86_64 | FileCheck --check-prefix=NO-SIZE-SORT-PRINT-ADDR %s
5 # SIZE-SORT-NO-ADDR:                  U puts
6 # SIZE-SORT-NO-ADDR: 0000000000000015 T main
8 # SIZE-SORT-PRINT-ADDR:                                   U puts
9 # SIZE-SORT-PRINT-ADDR: 0000000000000000 0000000000000015 T main
11 # NO-SIZE-SORT-PRINT-ADDR: 0000000000000000 0000000000000015 T main
12 # NO-SIZE-SORT-PRINT-ADDR:                                   U puts