xref: /llvm-project/llvm/test/tools/llvm-lib/nest.test (revision 350c89fa75a089060baea83a7ed88ed360f6e918)
1If an archive file is specified as an input file, its members
2are added to an output file. This test verifies that beahvior.
3
4RUN: rm -rf %t
5RUN: mkdir -p %t
6
7RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/foo.o %S/Inputs/a.s
8RUN: llvm-lib -out:%t/foo.lib %t/foo.o
9
10RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/bar.o %S/Inputs/b.s
11RUN: llvm-lib -out:%t/bar.lib %t/foo.lib %t/bar.o
12
13RUN: llvm-lib -list %t/bar.lib | FileCheck %s
14CHECK: foo.o
15CHECK: bar.o
16