1## --format-bsd is the default output format of llvm-nm. Show that the default 2## and bsd output (including its aliases) match to confirm this. 3 4# RUN: yaml2obj %s -o %t.o 5# RUN: llvm-nm %t.o --format=bsd > %t.formatbsd.txt 6# RUN: llvm-nm %t.o -f bsd > %t.fbsd.txt 7# RUN: llvm-nm %t.o -B > %t.b.txt 8# RUN: llvm-nm %t.o > %t.default.txt 9 10# RUN: cmp %t.formatbsd.txt %t.default.txt 11# RUN: cmp %t.formatbsd.txt %t.fbsd.txt 12# RUN: cmp %t.formatbsd.txt %t.b.txt 13 14## Verify that some output is actually printed. 15# RUN: FileCheck %s --input-file=%t.default.txt 16 17# CHECK: 0000000000000000 T sym1 18# CHECK-NEXT: 0000000000000000 W sym2 19 20--- !ELF 21FileHeader: 22 Class: ELFCLASS64 23 Data: ELFDATA2LSB 24 Type: ET_REL 25Sections: 26 - Name: .text 27 Type: SHT_PROGBITS 28 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 29Symbols: 30 - Name: sym1 31 Section: .text 32 Binding: STB_GLOBAL 33 - Name: sym2 34 Section: .text 35 Binding: STB_WEAK 36