Skip to content

Commit 14fb5e4

Browse files
committed
test
Created using spr 1.3.4
1 parent 27918b2 commit 14fb5e4

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -455,15 +455,3 @@ Sections:
455455
# LINK-NEXT: [ 3] .ref.last PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] [[#%x,]] 4
456456
# LINK-NEXT: [ 4] .shstrtab
457457

458-
# RUN: not yaml2obj %s --docnum=15 -o %t15 2>&1 | FileCheck %s --check-prefix=UNKNOWN_SECTION
459-
460-
--- !ELF
461-
FileHeader:
462-
Class: ELFCLASS64
463-
Data: ELFDATA2LSB
464-
Type: ET_REL
465-
Sections:
466-
- Name: .foo
467-
Type: FOO_SECTION
468-
469-
# UNKNOWN_SECTION: error: invalid hex32 number

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# RUN: yaml2obj %s -o %t
2-
# RUN: llvm-readobj --sections %t | FileCheck %s
1+
# RUN: yaml2obj %s --docnum=1 -o %t1
2+
# RUN: llvm-readobj --sections %t1 | FileCheck %s
33

44
# CHECK: Name: enum
55
# CHECK: Type: SHT_PROGBITS
@@ -25,3 +25,31 @@ Sections:
2525
Type: 0xabcd
2626
- Name: decimal
2727
Type: 1234
28+
29+
30+
# RUN: not yaml2obj %s --docnum=2 -o %t2 2>&1 | FileCheck %s --check-prefix=UNKNOWN-TYPE
31+
32+
--- !ELF
33+
FileHeader:
34+
Class: ELFCLASS64
35+
Data: ELFDATA2LSB
36+
Type: ET_REL
37+
Sections:
38+
- Name: .foo
39+
Type: FOO_SECTION
40+
41+
# UNKNOWN-TYPE: error: invalid hex32 number
42+
43+
44+
# RUN: not yaml2obj %s --docnum=3 -o %t3 -DMACHINE=EM_NONE 2>&1 | FileCheck %s --check-prefix=UNKNOWN-SHT-TYPE
45+
46+
--- !ELF
47+
FileHeader:
48+
Class: ELFCLASS64
49+
Data: ELFDATA2LSB
50+
Type: ET_REL
51+
Sections:
52+
- Name: .foo
53+
Type: SHT_MIPS_ABIFLAGS
54+
55+
# UNKNOWN-SHT-TYPE: error: invalid hex32 number

0 commit comments

Comments
 (0)