xref: /llvm-project/llvm/test/tools/llvm-readobj/ELF/basic.test (revision 536ba6373f05fb1e9bc7199e301fbf4bc514006f)
1fff9f049SGeorgii Rymar## Test the case where no switches are specified.
2fff9f049SGeorgii Rymar
3fff9f049SGeorgii Rymar# RUN: yaml2obj %s -o %t.trivial.obj.elf-x86-64
4fff9f049SGeorgii Rymar# RUN: llvm-readobj %t.trivial.obj.elf-x86-64 | FileCheck --check-prefix=HEADER %s
5fff9f049SGeorgii Rymar# RUN: llvm-readelf %t.trivial.obj.elf-x86-64 | FileCheck --check-prefix=NO-OUTPUT --allow-empty %s
6fff9f049SGeorgii Rymar
7fff9f049SGeorgii Rymar# HEADER: File: {{.*}}trivial.obj.elf-x86-64
8*536ba637SFangrui Song# HEADER: Format: elf64-x86-64
9fff9f049SGeorgii Rymar# HEADER: Arch: x86_64
10fff9f049SGeorgii Rymar# HEADER: AddressSize: 64bit
11fff9f049SGeorgii Rymar
12fff9f049SGeorgii Rymar# NO-OUTPUT-NOT: {{.}}
13fff9f049SGeorgii Rymar
14fff9f049SGeorgii Rymar--- !ELF
15fff9f049SGeorgii RymarFileHeader:
16fff9f049SGeorgii Rymar  Class:   ELFCLASS64
17fff9f049SGeorgii Rymar  Data:    ELFDATA2LSB
18fff9f049SGeorgii Rymar  Type:    ET_REL
19fff9f049SGeorgii Rymar  Machine: EM_X86_64
20