Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / yaml2obj / elf-comdat-broken-info.yaml
blob78b2f4b1c5aeece9dfa8d3f2dfd9e2fd8f2553af
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
4 --- !ELF
5 FileHeader:
6   Class:               ELFCLASS64
7   Data:                ELFDATA2LSB
8   Type:                ET_REL
9   Machine:             EM_X86_64
10 Sections:
11   - Name:              .group
12     Type:              SHT_GROUP
13     Link:              .symtab
14     Info:              12345
15     Members:
16       - SectionOrType: GRP_COMDAT
18 ## Check we are able to produce SHT_GROUP section with a custom Info value (12345).
19 # CHECK:      Name: .group
20 # CHECK-NEXT: Type: SHT_GROUP
21 # CHECK-NEXT: Flags [
22 # CHECK-NEXT: ]
23 # CHECK-NEXT: Address:
24 # CHECK-NEXT: Offset:
25 # CHECK-NEXT: Size:
26 # CHECK-NEXT: Link:
27 # CHECK-NEXT: Info: 12345