xref: /llvm-project/lld/test/ELF/lto/deplibs.s (revision 1d16515fb40759d4527e073131dcaafacb0947cd)
1; REQUIRES: x86
2
3; RUN: llvm-as %s -o %t.o
4; RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s -DOBJ=%t.o
5
6; CHECK: error: [[OBJ]]: unable to find library from dependent library specifier: foo
7; CHECK: error: [[OBJ]]: unable to find library from dependent library specifier: bar
8
9target triple = "x86_64-unknown-linux-gnu"
10target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11
12!llvm.dependent-libraries = !{!0, !1}
13
14!0 = !{!"foo"}
15!1 = !{!"bar"}
16