1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/tools/llvm-lib/libpath.test
Martin Storsjo d3986a19aa [test] Move llvm-lib tests into tools/llvm-lib. NFC.
Similarly to SVN r317189 for llvm-dlltool, these are probably
easier to find in a tools subdirectory with a name identical to
the tool, than in a toplevel directory with a different name.

This matches the move of LibDriver itself in SVN r302995.

Differential Revision: https://reviews.llvm.org/D39531

llvm-svn: 317262
2017-11-02 20:05:20 +00:00

16 lines
557 B
Plaintext

RUN: mkdir -p %t/a %t/b
RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/a/foo.obj %S/Inputs/a.s
RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/b/foo.obj %S/Inputs/b.s
RUN: env "LIB=%t/a;%t/b" llvm-lib /out:%t1.lib foo.obj
RUN: llvm-nm %t1.lib | FileCheck --check-prefix=A %s
RUN: llvm-lib /out:%t2.lib /libpath:%t/a /libpath:%t/b foo.obj
RUN: llvm-nm %t2.lib | FileCheck --check-prefix=A %s
RUN: env LIB=%t/a llvm-lib /libpath:%t/b /out:%t3.lib foo.obj
RUN: llvm-nm %t3.lib | FileCheck --check-prefix=B %s
A: T a
B: T b