File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
llvm/test/tools/yaml2obj/ELF Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ Sections:
2626 - Name : decimal
2727 Type : 1234
2828
29- # # Check that we can handle unknown chunk types.
29+ # # Check that we can handle unknown section and chunk types.
3030
31- # RUN: not yaml2obj %s --docnum=2 -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
31+ # RUN: not yaml2obj %s --docnum=2 -DSECTION_TYPE=UNKNOWN_TYPE -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
32+ # RUN: not yaml2obj %s --docnum=2 -DSECTION_TYPE=SHT_UNKNOWN_TYPE -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
3233
3334--- !ELF
3435FileHeader :
@@ -37,20 +38,6 @@ FileHeader:
3738 Type : ET_REL
3839Sections :
3940 - Name : .foo
40- Type : UNKNOWN_TYPE
41+ Type : [[SECTION_TYPE]]
4142
4243# UNKNOWN-TYPE: error: invalid hex32 number
43-
44- # # Check that we can handle unknown section types.
45-
46- # RUN: not yaml2obj %s --docnum=3 -o %t3 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
47-
48- --- !ELF
49- FileHeader :
50- Class : ELFCLASS64
51- Data : ELFDATA2LSB
52- Type : ET_REL
53- Sections :
54- - Name : .foo
55- Type : SHT_UNKNOWN_TYPE
56-
You can’t perform that action at this time.
0 commit comments