Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions llvm/test/tools/yaml2obj/ELF/section-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Sections:
- Name: decimal
Type: 1234

## Check that we can handle unknown section and chunk types.

# RUN: not yaml2obj %s --docnum=2 -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
# RUN: not yaml2obj %s --docnum=2 -DSECTION_TYPE=UNKNOWN_TYPE -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
# RUN: not yaml2obj %s --docnum=2 -DSECTION_TYPE=SHT_UNKNOWN_TYPE -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE

--- !ELF
FileHeader:
Expand All @@ -36,20 +38,6 @@ FileHeader:
Type: ET_REL
Sections:
- Name: .foo
Type: FOO_SECTION
Type: [[SECTION_TYPE]]

# UNKNOWN-TYPE: error: invalid hex32 number


# RUN: not yaml2obj %s --docnum=3 -o %t3 -DMACHINE=EM_NONE 2>&1 | FileCheck %s --check-prefix=UNKNOWN-SHT-TYPE

--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Sections:
- Name: .foo
Type: SHT_MIPS_ABIFLAGS

# UNKNOWN-SHT-TYPE: error: invalid hex32 number
Loading