1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/tools/llvm-nm/print-filename.test
James Henderson 6fc6c6773a [test][tools] Add missing and improve testing
Mostly this adds testing for certain aliases in more explicit ways.
There are also a few tidy-ups, and additions of missing testing, where
the feature was either not tested at all, or not tested explicitly and
sufficiently.

Reviewed by: MaskRay, rupprecht, grimar

Differential Revision: https://reviews.llvm.org/D71116
2019-12-09 12:24:23 +00:00

19 lines
391 B
Plaintext

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm --print-file-name %t.o | FileCheck %s -DFILE=%t.o
# RUN: llvm-nm -A %t.o | FileCheck %s -DFILE=%t.o
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Symbols:
- Name: symbol_a
Section: .text
# CHECK: [[FILE]]: 0000000000000000 n symbol_a