llvm-project
25 строк · 1.2 Кб
1RUN: echo "/nodefaultlib" > %t.rsp
2RUN: lld-link /debug /pdb:%t.pdb @%t.rsp /entry:"1 "'"'hello'"'" 2" /manifestuac:"level='asInvoker' uiAccess='false'" %S/Inputs/pdb-diff.obj /force
3RUN: llvm-pdbutil dump -modules %t.pdb | FileCheck --check-prefix=MODS %s
4RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck --check-prefix=SYMS %s
5
6MODS: Mod 0001 | `* Linker *`
7MODS-NEXT: Obj: ``:
8MODS-NEXT: debug stream: 13, # files: 0, has ec info: false
9MODS-NEXT: pdb file ni: 1 `{{.*}}pdb-linker-module.test.tmp.pdb`, src file ni: 0 ``
10
11SYMS: Mod 0001 | `* Linker *`
12SYMS-NEXT: 4 | S_OBJNAME [size = 20] sig=0, `* Linker *`
13SYMS-NEXT: 24 | S_COMPILE3 [size = 40]
14SYMS-NEXT: machine = intel 80386, Ver = LLVM Linker, language = link
15SYMS-NEXT: frontend = 0.0.0.0, backend = 14.10.25019.0
16SYMS-NEXT: flags = none
17SYMS-NEXT: 64 | S_ENVBLOCK
18SYMS-NEXT: - cwd
19SYMS-NEXT: -
20SYMS-NEXT: - exe
21SYMS-NEXT: - {{.*}}lld-link
22SYMS-NEXT: - pdb
23SYMS-NEXT: - {{.*}}pdb-linker-module{{.*}}pdb
24SYMS-NEXT: - cmd
25SYMS-NEXT: - /debug /pdb:{{.*}}pdb-linker-module{{.*}}pdb /nodefaultlib "/entry:1 ""hello"" 2" "/manifestuac:level='asInvoker' uiAccess='false'" /force
26