Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid / sht-group-wrong-section.test
blob46209a213902c24b7b5a951ddd4eb4bf77f7bb6d
1 # REQUIRES: x86
2 # RUN: yaml2obj %s -o %t.o
3 # RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
4 # CHECK: error: {{.*}}.o: invalid section index in group: 12345
6 --- !ELF
7 FileHeader:
8   Class:               ELFCLASS64
9   Data:                ELFDATA2LSB
10   Type:                ET_REL
11   Machine:             EM_X86_64
12 Sections:
13   - Name:              .group
14     Type:              SHT_GROUP
15     Link:              .symtab
16     Info:              foo
17     Members:
18       - SectionOrType: GRP_COMDAT
19       - SectionOrType: 12345
20 Symbols:
21   - Name:            foo
22     Binding:         STB_GLOBAL