blob: 848a430eb053c98aeb4ae7eb208f2a831e7734ee [file] [log] [blame]
# RUN: rm -rf %t && mkdir -p %t
# RUN: echo > %t/empty.o
# RUN: llvm-ar --format=gnu cr %t/not-elf.a %t/empty.o
# RUN: not ld.lld --whole-archive %t/not-elf.a -o /dev/null 2>&1 | FileCheck %s
# CHECK: not-elf.a(empty.o): not an ELF file