1 # RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
2 # RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
4 # RUN: lld-link /debug /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
6 # RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
8 # RUN: lld-link /debug /debug:ghash /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
10 # RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
13 CHECK-NEXT: ============================================================
14 CHECK-LABEL: Mod 0000 |
15 CHECK: 92 | S_GPROC32 [size = 44] `main`
16 CHECK-NEXT: parent = 0, end = 168, addr = 0001:0000, code size = 14
17 CHECK-NEXT: type = `0x1004 (int (<no type>))`, debug start = 4, debug end = 9, flags = none
18 CHECK-NEXT: 136 | S_FRAMEPROC [size = 32]
19 CHECK-NEXT: size = 40, padding size = 0, offset to padding = 0
20 CHECK-NEXT: bytes of callee saved registers = 0, exception handler addr = 0000:0000
21 CHECK-NEXT: local fp reg = NONE, param fp reg = NONE
22 CHECK-NEXT: flags = has async eh | opt speed
23 CHECK-NEXT: 168 | S_END [size = 4]
24 CHECK-LABEL: Mod 0001 |
25 CHECK: 92 | S_GPROC32 [size = 44] `foo`
26 CHECK-NEXT: parent = 0, end = 168, addr = 0001:0016, code size = 6
27 CHECK-NEXT: type = `0x1001 (int ())`, debug start = 0, debug end = 5, flags = none
28 CHECK-NEXT: 136 | S_FRAMEPROC [size = 32]
29 CHECK-NEXT: size = 0, padding size = 0, offset to padding = 0
30 CHECK-NEXT: bytes of callee saved registers = 0, exception handler addr = 0000:0000
31 CHECK-NEXT: local fp reg = NONE, param fp reg = NONE
32 CHECK-NEXT: flags = has async eh | opt speed
33 CHECK-NEXT: 168 | S_END [size = 4]
34 CHECK-LABEL: Mod 0002 |
35 CHECK: 4 | S_OBJNAME [size = 20] sig=0, `* Linker *`