]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/version-script-in-search-path.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / version-script-in-search-path.s
1 # REQUIRES: x86
2 # Check that we fall back to search paths if a version script was not found
3 # This behaviour matches ld.bfd.
4
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
6 # RUN: mkdir -p %T/searchpath
7 # RUN: echo '{};' > %T/searchpath/%basename_t.script
8 # RUN: ld.lld -L%T/searchpath --version-script=%basename_t.script %t.o -o /dev/null
9 # RUN: not ld.lld --version-script=%basename_t.script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
10 # ERROR: error: cannot find version script