Skip to content

Commit cd55931

Browse files
committed
test comments
Created using spr 1.3.4
1 parent 36ce09c commit cd55931

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3738
Sections:
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
4749
FileHeader:
@@ -50,6 +52,6 @@ FileHeader:
5052
Type: ET_REL
5153
Sections:
5254
- Name: .foo
53-
Type: SHT_MIPS_ABIFLAGS
55+
Type: SHT_UNKNOWN_TYPE
5456

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

0 commit comments

Comments
 (0)