1# REQUIRES: x86
2# Tests error on archive file without a symbol table
3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.o %s
4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.archive.o %S/Inputs/archive.s
5# RUN: rm -f %t.a
6# RUN: llvm-ar crS %t.a %t.archive.o
7
8# RUN: not ld.lld -o /dev/null %t.o %t.a 2>&1 | FileCheck %s
9
10.globl _start
11_start:
12
13# CHECK: error: {{.*}}.a: archive has no index; run ranlib to add one
14