Skip to content

Commit 95a6943

Browse files
committed
dedup
Created using spr 1.3.4
1 parent 74f37d7 commit 95a6943

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

llvm/test/tools/yaml2obj/ELF/section-type.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff 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
3435
FileHeader:
@@ -37,20 +38,6 @@ FileHeader:
3738
Type: ET_REL
3839
Sections:
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-

0 commit comments

Comments
 (0)