1 ; RUN: llvm-pdbutil yaml2pdb -pdb=%t.pdb %p/Inputs/debug-subsections.yaml
2 ; RUN: llvm-pdbutil pdb2yaml -all -no-file-headers %t.pdb | FileCheck --check-prefix=YAML %s
5 YAML-NEXT: - Module: Foo.obj
6 YAML-NEXT: ObjFile: Foo.obj
7 YAML-NEXT: Subsections:
8 YAML-NEXT: - !CrossModuleExports
10 YAML-NEXT: - LocalId: 4852
11 YAML-NEXT: GlobalId: 9283
12 YAML-NEXT: - LocalId: 2147487875
13 YAML-NEXT: GlobalId: 9123
14 YAML: - Module: Bar.obj
15 YAML-NEXT: ObjFile: Bar.obj
16 YAML-NEXT: Subsections:
17 YAML-NEXT: - !CrossModuleExports
19 YAML-NEXT: - LocalId: 4265
20 YAML-NEXT: GlobalId: 6097
21 YAML-NEXT: - LocalId: 4297
22 YAML-NEXT: GlobalId: 4677
23 YAML-NEXT: - !CrossModuleImports
25 YAML-NEXT: - Module: Foo.obj
26 YAML-NEXT: Imports: [ 4852, 2147487875 ]
27 YAML: - Module: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
28 YAML-NEXT: ObjFile: 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
29 YAML-NEXT: SourceFiles:
30 YAML-NEXT: - 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
31 YAML-NEXT: Subsections:
32 YAML-NEXT: - !FileChecksums
34 YAML-NEXT: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
36 YAML-NEXT: Checksum: A0A5BD0D3ECD93FC29D19DE826FBF4BC
37 YAML-NEXT: - FileName: 'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
39 YAML-NEXT: Checksum: 1154D69F5B2650196E1FC34F4134E56B
41 YAML-NEXT: CodeSize: 10
43 YAML-NEXT: RelocOffset: 100016
44 YAML-NEXT: RelocSegment: 1
46 YAML-NEXT: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
48 YAML-NEXT: - Offset: 0
49 YAML-NEXT: LineStart: 5
50 YAML-NEXT: IsStatement: true
51 YAML-NEXT: EndDelta: 0
52 YAML-NEXT: - Offset: 3
53 YAML-NEXT: LineStart: 6
54 YAML-NEXT: IsStatement: true
55 YAML-NEXT: EndDelta: 0
56 YAML-NEXT: - Offset: 8
57 YAML-NEXT: LineStart: 7
58 YAML-NEXT: IsStatement: true
59 YAML-NEXT: EndDelta: 0
61 YAML-NEXT: - !InlineeLines
62 YAML-NEXT: HasExtraFiles: false
64 YAML-NEXT: - FileName: 'f:\dd\externalapis\windows\10\sdk\inc\winerror.h'
65 YAML-NEXT: LineNum: 26950
66 YAML-NEXT: Inlinee: 22767