xref: /llvm-project/lld/test/COFF/include2.test (revision b9bd8ca24e46c1fd6fa343a248936e395f103765)
1# RUN: yaml2obj %p/Inputs/include1a.yaml -o %t1.obj
2# RUN: yaml2obj %p/Inputs/include1b.yaml -o %t2.obj
3# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t3.obj
4# RUN: yaml2obj %p/Inputs/include1d.yaml -o %t4.obj
5# RUN: rm -f %t2.lib %t3.lib %t4.lib
6# RUN: llvm-ar cru %t2.lib %t2.obj
7# RUN: llvm-ar cru %t3.lib %t3.obj
8# RUN: llvm-ar cru %t4.lib %t4.obj
9# RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.lib %t3.lib %t4.lib /verbose >& %t.log
10# RUN: FileCheck %s < %t.log
11# RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.lib %t3.lib %t4.lib /includeglob:baz /verbose >& %t.glob.log
12# RUN: FileCheck -check-prefix=GLOB %s < %t.glob.log
13
14CHECK: include2.test.tmp1.obj
15CHECK: include2.test.tmp2.lib
16CHECK: include2.test.tmp2.lib(include2.test.tmp2.obj) for foo
17CHECK: include2.test.tmp3.lib
18CHECK: include2.test.tmp3.lib(include2.test.tmp3.obj) for bar
19CHECK-NOT: include2.test.tmp4.lib(include2.test.tmp4.obj) for baz
20GLOB: include2.test.tmp4.lib(include2.test.tmp4.obj) for baz
21