1 If the same file is specified more than once as an input file,
2 llvm-lib should ignore all but the first occurrence of the file.
7 RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/foo.o %S/Inputs/a.s
8 RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/bar.o %S/Inputs/b.s
9 RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/abc.o %S/Inputs/abc.s
10 RUN: llvm-lib -out:%t/foo.lib %t/foo.o %t/foo.o %t/abc.o %t/bar.o %t/foo.o %t/foo.o
12 RUN: llvm-ar t %t/foo.lib | FileCheck %s
18 # Check that symbol map contains sorted, de-duplicated symbols.
19 RUN: cd %t && llvm-lib -out:foo.lib foo.o foo.o abc.o bar.o foo.o foo.o
20 RUN: llvm-nm --print-armap %t/foo.lib | FileCheck %s --check-prefix=DUP
22 # DUP-NEXT: a in abc.o
23 # DUP-NEXT: b in bar.o
24 # DUP-NEXT: c in abc.o