1# RUN: rm -rf %t1 %t2
2# RUN: mkdir %t1 %t2
3# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1/foo.obj
4# RUN: llvm-ar cru %t1/foo.lib %t1/foo.obj
5# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2/foo.obj
6# RUN: llvm-ar cru %t2/foo.lib %t2/foo.obj
7
8# RUN: rm -f %t.dll %t.pdb
9# RUN: lld-link /debug /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
10# RUN:   %t1/foo.lib %t2/foo.lib
11
12# RUN: llvm-pdbutil dump -modules %t.pdb | FileCheck -check-prefix RAW %s
13
14RAW:                               Modules
15RAW-NEXT: ============================================================
16RAW-NEXT:   Mod 0000 | `foo.obj`:
17RAW-NEXT:              Obj: `{{.*}}1{{[\\/]}}foo.lib`:
18RAW-NEXT:              debug stream: 11, # files: 1, has ec info: false
19RAW-NEXT:              pdb file ni: 0 ``, src file ni: 0 ``
20RAW-NEXT:   Mod 0001 | `foo.obj`:
21RAW-NEXT:              Obj: `{{.*}}2{{[\\/]}}foo.lib`:
22RAW-NEXT:              debug stream: 12, # files: 1, has ec info: false
23RAW-NEXT:              pdb file ni: 0 ``, src file ni: 0 ``
24