25 lines · plain
1# REQUIRES: x862# This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.3# XFAIL: main-run-twice4# RUN: yaml2obj %s -o %t.o5# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s6# CHECK: error: {{.*}}.o: invalid section index in group: 123457 8--- !ELF9FileHeader:10 Class: ELFCLASS6411 Data: ELFDATA2LSB12 Type: ET_REL13 Machine: EM_X86_6414Sections:15 - Name: .group16 Type: SHT_GROUP17 Link: .symtab18 Info: foo19 Members:20 - SectionOrType: GRP_COMDAT21 - SectionOrType: 1234522Symbols:23 - Name: foo24 Binding: STB_GLOBAL25