Rui Ueyama | 64a362e | 2019-10-02 05:24:24 +0000 | [diff] [blame^] | 1 | If an archive file is specified as an input file, its members |
| 2 | are added to an output file. This test verifies that beahvior. |
| 3 | |
| 4 | RUN: rm -rf %t |
| 5 | RUN: mkdir -p %t |
| 6 | |
| 7 | RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/foo.o %S/Inputs/a.s |
| 8 | RUN: llvm-lib -out:%t/foo.lib %t/foo.o |
| 9 | |
| 10 | RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/bar.o %S/Inputs/b.s |
| 11 | RUN: llvm-lib -out:%t/bar.lib %t/foo.lib %t/bar.o |
| 12 | |
| 13 | RUN: llvm-ar t %t/bar.lib | FileCheck %s |
| 14 | CHECK: foo.o |
| 15 | CHECK: bar.o |