20 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 5# The object in the archive has invalid data encoding.6# Check we report this.7 8# RUN: yaml2obj %s -o %t.o9# RUN: llvm-ar rcS %t.a %t.o10 11# RUN: not ld.lld --whole-archive %t.a -o /dev/null 2>&1 | FileCheck %s12# CHECK: {{.*}}.a({{.*}}.o): corrupted ELF file: invalid data encoding13 14--- !ELF15FileHeader:16 Class: ELFCLASS6417 Data: ELFDATANONE18 Type: ET_REL19 Machine: EM_X86_6420