8 lines · plain
1# This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.2# XFAIL: main-run-twice3# RUN: rm -rf %t && mkdir -p %t4# RUN: echo > %t/empty.o5# RUN: llvm-ar --format=gnu cr %t/not-elf.a %t/empty.o6# RUN: not ld.lld --whole-archive %t/not-elf.a -o /dev/null 2>&1 | FileCheck %s7# CHECK: not-elf.a(empty.o): not an ELF file8