2 # RUN: rm -rf %t && mkdir -p %t && cd %t
3 # RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o foo.obj
4 # RUN: llc %S/Inputs/bar.ll -filetype=obj -mtriple=i686-windows-msvc -o bar.obj
5 # RUN: llvm-lib bar.obj -out:bar.lib
6 # RUN: lld-link -safeseh:no -debug -pdb:foo.pdb foo.obj bar.lib -out:foo.exe -entry:main
7 # RUN: llvm-pdbutil dump -modules %t/foo.pdb | FileCheck %s
9 # Make sure that the PDB has module descriptors. foo.obj and bar.lib should be
10 # absolute paths, and bar.obj should be the relative path passed to llvm-lib.
13 # CHECK-NEXT: ============================================================
14 # CHECK-NEXT: Mod 0000 | `{{.*pdb-lib.s.tmp[/\\]foo.obj}}`:
15 # CHECK-NEXT: Obj: `{{.*pdb-lib.s.tmp[/\\]foo.obj}}`:
16 # CHECK-NEXT: debug stream: 65535, # files: 0, has ec info: false
17 # CHECK-NEXT: pdb file ni: 0 ``, src file ni: 0 ``
18 # CHECK-NEXT: Mod 0001 | `bar.obj`:
19 # CHECK-NEXT: Obj: `{{.*pdb-lib.s.tmp[/\\]bar.lib}}`:
20 # CHECK-NEXT: debug stream: 65535, # files: 0, has ec info: false
21 # CHECK-NEXT: pdb file ni: 0 ``, src file ni: 0 ``
22 # CHECK-NEXT: Mod 0002 | `* Linker *`:
23 # CHECK-NEXT: Obj: ``:
24 # CHECK-NEXT: debug stream: 10, # files: 0, has ec info: false
25 # CHECK-NEXT: pdb file ni: 1 `{{.*foo.pdb}}`, src file ni: 0 ``