llvm-for-llvmta/test/tools/llvm-nm/X86/nm-no-symbols-local-only.yaml

16 lines
367 B
YAML
Raw Normal View History

2022-04-25 10:02:23 +02:00
## When a file contains only local symbols the "no symbols" error should not
## be shown, so we expect the output to be completely empty.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o 2>&1 | count 0
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Symbols:
- Name: foo.c
Type: STT_FILE
Index: SHN_ABS