[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / archive-no-index.s
blob23b019e24b6484f477fd6c2a42a30768de40c022
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
8 # RUN: ld.lld %t.o %t.a -o /dev/null 2>&1 | count 0
10 # RUN: ld.lld -shared %t.archive.o -o %t.so
11 # RUN: llvm-ar crS %t.a %t.so
12 # RUN: ld.lld %t.o %t.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN
14 # WARN: warning: {{.*}}.a: archive member '{{.*}}.so' is neither ET_REL nor LLVM bitcode
16 .globl _start
17 _start: