xref: /llvm-project/llvm/test/tools/llvm-lib/list.test (revision a2f60933e5c90bde4b383b2528ba1c142d920a01)
1*a2f60933SNico WeberRUN: rm -rf %t && mkdir -p %t
2*a2f60933SNico WeberRUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/a.obj %S/Inputs/a.s
3*a2f60933SNico WeberRUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t/b.obj %S/Inputs/b.s
4*a2f60933SNico Weber
5*a2f60933SNico WeberRUN: rm -f %t/l.lib
6*a2f60933SNico WeberRUN: llvm-lib /out:%t/foo.lib %t/a.obj %t/b.obj
7*a2f60933SNico Weber
8*a2f60933SNico Weber# This should ignore the two .obj files, then print the first .lib file,
9*a2f60933SNico Weber# then ignore the 2nd one.
10*a2f60933SNico WeberRUN: llvm-lib /list %t/a.obj %t/b.obj %t/foo.lib %t/foo.lib | FileCheck %s
11*a2f60933SNico Weber
12*a2f60933SNico WeberCHECK: a.obj
13*a2f60933SNico WeberCHECK: b.obj
14*a2f60933SNico WeberCHECK-NOT: a.obj
15