1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/llvm-nm/format-sysv-layout.test
Fangrui Song d68dfedd72 [test] Use yaml2obj -o %t instead of > %t
To improve consistency and avoid unneeded shell feature (output
redirection).

While here, make other changes to improve consistency

--docnum 1 => --docnum=1
-docnum=x => --docnum=x
2020-01-21 17:20:18 -08:00

29 lines
1.0 KiB
Plaintext

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace
# RUN: llvm-nm %t.o --debug-syms -f=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Symbols:
- Name: symbol_with_a_significantly_longer_name
Section: .text
- Name: symbol
Section: .text
- Name: symbol_2
Type: STT_FUNC
# CHECK: Symbols from [[FILE]]:
# CHECK-EMPTY:
# CHECK-NEXT: Name Value Class Type Size Line Section
# CHECK-NEXT: symbol |0000000000000000| t | NOTYPE|0000000000000000| |.text
# CHECK-NEXT: symbol_2 | | U | FUNC| | |*UND*
# CHECK-NEXT: symbol_with_a_significantly_longer_name|0000000000000000| t | NOTYPE|0000000000000000| |.text