1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4# RUN: echo ".global foo; foo:" | \
5# RUN:   llvm-mc -filetype=obj -triple=x86_64 - -o %tfoo.o
6# RUN: rm -rf %t.dir
7# RUN: mkdir -p %t.dir
8# RUN: llvm-ar rc %t.dir/foo.a %tfoo.o
9# RUN: not ld.lld %t.o -o /dev/null -L %t.dir 2>&1 | FileCheck %s -DOBJ=%t.o
10# CHECK: error: [[OBJ]]: unable to find library from dependent library specifier: :foo.a
11
12        .global _start
13_start:
14        call foo
15    .section ".deplibs","MS",@llvm_dependent_libraries,1
16        .asciz  ":foo.a"
17