forked from OSchip/llvm-project
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
RUN: not lld -flavor gnu -t -lfnarchive -L%p/../elf/Inputs 2> %t.err
|
|
RUN: FileCheck %s < %t.err
|
|
|
|
RUN: not lld -flavor gnu -target x86_64--netbsd -t -ltest \
|
|
RUN: --sysroot=%p/Inputs 2> %t2
|
|
RUN: FileCheck -check-prefix=NETBSD-AMD64 %s < %t2
|
|
RUN: not lld -flavor gnu -target x86_64--netbsd -nostdlib -t -ltest \
|
|
RUN: --sysroot=%p/Inputs 2> %t3
|
|
RUN: FileCheck -check-prefix=NETBSD-AMD64-NS %s < %t3
|
|
RUN: not lld -flavor gnu -target i386--netbsd -t -ltest \
|
|
RUN: --sysroot=%p/Inputs 2> %t4
|
|
RUN: FileCheck -check-prefix=NETBSD-I386 %s < %t4
|
|
RUN: not lld -flavor gnu -target x86_64--netbsd -m elf_i386 -t -ltest \
|
|
RUN: --sysroot=%p/Inputs 2> %t5
|
|
RUN: FileCheck -check-prefix=NETBSD-AMD64_32 %s < %t5
|
|
|
|
# run linker with -t mode to dump full paths to input files
|
|
|
|
CHECK: {{[^ ]+}}elf{{[\\/]}}Inputs{{[\\/]}}libfnarchive.a
|
|
|
|
NETBSD-AMD64: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}libtest.a
|
|
NETBSD-AMD64-NS-NOT: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}libtest.a
|
|
NETBSD-I386: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}libtest.a
|
|
NETBSD-AMD64_32: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}i386{{[\\/]}}libtest.a
|