3 # The object in the archive has invalid data encoding.
4 # Check we report this.
6 # RUN: yaml2obj %s -o %t.o
7 # RUN: llvm-ar rcS %t.a %t.o
9 # RUN: not ld.lld --whole-archive %t.a -o /dev/null 2>&1 | FileCheck %s
10 # CHECK: {{.*}}.a({{.*}}.o): corrupted ELF file: invalid data encoding