llvm-project/lld/test/COFF/pdb-linker-module.test

25 lines
1.0 KiB
Plaintext

RUN: lld-link /debug /pdb:%t.pdb /nodefaultlib /entry:main %S/Inputs/pdb-diff.obj
RUN: llvm-pdbutil dump -modules %t.pdb | FileCheck --check-prefix=MODS %s
RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck --check-prefix=SYMS %s
MODS: Mod 0001 | `* Linker *`
MODS-NEXT: Obj: ``:
MODS-NEXT: debug stream: 10, # files: 0, has ec info: false
MODS-NEXT: pdb file ni: 1 `{{.*}}pdb-linker-module.test.tmp.pdb`, src file ni: 0 ``
SYMS: Mod 0001 | `* Linker *`
SYMS-NEXT: 4 | S_OBJNAME [size = 20] sig=0, `* Linker *`
SYMS-NEXT: 24 | S_COMPILE3 [size = 40]
SYMS-NEXT: machine = intel 80386, Ver = LLVM Linker, language = link
SYMS-NEXT: frontend = 0.0.0.0, backend = 14.10.25019.0
SYMS-NEXT: flags = none
SYMS-NEXT: 64 | S_ENVBLOCK
SYMS-NEXT: - cwd
SYMS-NEXT: -
SYMS-NEXT: - exe
SYMS-NEXT: - {{.*}}lld-link
SYMS-NEXT: - pdb
SYMS-NEXT: - {{.*}}pdb-linker-module{{.*}}pdb
SYMS-NEXT: - cmd
SYMS-NEXT: - /debug /pdb:{{.*}}pdb-linker-module{{.*}}pdb /nodefaultlib /entry:main {{.*}}pdb-diff.obj