File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
llvm/test/tools/yaml2obj/ELF Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Sections:
2626 - Name : decimal
2727 Type : 1234
2828
29+ # # Check that we can handle unknown chunk types.
2930
3031# RUN: not yaml2obj %s --docnum=2 -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
3132
@@ -36,12 +37,13 @@ FileHeader:
3637 Type : ET_REL
3738Sections :
3839 - Name : .foo
39- Type : FOO_SECTION
40+ Type : UNKNOWN_TYPE
4041
4142# UNKNOWN-TYPE: error: invalid hex32 number
4243
44+ # # Check that we can handle unknown section types.
4345
44- # RUN: not yaml2obj %s --docnum=3 -o %t3 -DMACHINE=EM_NONE 2>&1 | FileCheck %s --check-prefix=UNKNOWN-SHT-TYPE
46+ # RUN: not yaml2obj %s --docnum=3 -o %t3 2>&1 | FileCheck %s --check-prefix=UNKNOWN-SHT-TYPE
4547
4648--- !ELF
4749FileHeader :
@@ -50,6 +52,6 @@ FileHeader:
5052 Type : ET_REL
5153Sections :
5254 - Name : .foo
53- Type : SHT_MIPS_ABIFLAGS
55+ Type : SHT_UNKNOWN_TYPE
5456
5557# UNKNOWN-SHT-TYPE: error: invalid hex32 number
You can’t perform that action at this time.
0 commit comments