Fix test to unconditionally create a GNU-format archive.

On Darwin targets, llvm-ar creates a Darwin format archive by default,
which ld.lld can't read, so it was printing an unexpected error.

llvm-svn: 355894
This commit is contained in:
Eli Friedman 2019-03-12 02:20:01 +00:00
parent b5a307fa24
commit 5b1027a908
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# RUN: rm -rf %t && mkdir -p %t
# RUN: llvm-mc %s -o %t/simple.o -filetype=obj -triple x86_64-pc-linux
# RUN: echo > %t/empty.o
# RUN: llvm-ar cr %t/not-elf.a %t/empty.o
# RUN: llvm-ar --format=gnu cr %t/not-elf.a %t/empty.o
# RUN: not ld.lld %t/simple.o %t/not-elf.a -o %t2 2>&1 | \
# RUN: FileCheck --check-prefix=NOT-ELF %s