23 lines
509 B
YAML
23 lines
509 B
YAML
|
## Check that "Name" defaults to an empty string.
|
||
|
|
||
|
# RUN: yaml2obj %s -o %t
|
||
|
# RUN: llvm-readobj --sections %t | FileCheck %s
|
||
|
|
||
|
!ELF
|
||
|
FileHeader:
|
||
|
Class: ELFCLASS64
|
||
|
Data: ELFDATA2LSB
|
||
|
Type: ET_EXEC
|
||
|
Sections:
|
||
|
- Type: SHT_PROGBITS
|
||
|
- Name: .text
|
||
|
Type: SHT_PROGBITS
|
||
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
||
|
|
||
|
# CHECK: Name: (
|
||
|
# CHECK-NEXT: Type: SHT_NULL
|
||
|
# CHECK: Name: (
|
||
|
# CHECK-NEXT: Type: SHT_PROGBITS
|
||
|
# CHECK: Name: .text
|
||
|
# CHECK-NEXT: Type: SHT_PROGBITS
|