brintos

brintos / llvm-project-archived public Read only

0
0
Text · 953 B · 6cbf674 Raw
38 lines · plain
1## Show that the --reverse-sort option reverses the selected sort order.2# RUN: yaml2obj %s -o %t.o3# RUN: llvm-nm %t.o --reverse-sort | FileCheck %s --check-prefix=SORTED4# RUN: llvm-nm %t.o --reverse-sort --numeric-sort | FileCheck %s --check-prefix=SORTED5# RUN: llvm-nm %t.o --reverse-sort --size-sort | FileCheck %s --check-prefix=SORTED6# RUN: llvm-nm %t.o --reverse-sort --no-sort | FileCheck %s --check-prefix=UNSORTED7 8# SORTED:      third9# SORTED-NEXT: second10# SORTED-NEXT: first11 12# UNSORTED:      second13# UNSORTED-NEXT: third14# UNSORTED-NEXT: first15 16--- !ELF17FileHeader:18  Class:   ELFCLASS6419  Data:    ELFDATA2LSB20  Type:    ET_REL21Sections:22  - Name:  .text23    Type:  SHT_PROGBITS24    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]25Symbols:26  - Name:    second27    Section: .text28    Value:   229    Size:    230  - Name:    third31    Section: .text32    Value:   333    Size:    334  - Name:    first35    Section: .text36    Value:   137    Size:    138