1 ; Test that the native PDB reader can enumerate the compilands.
2 ; RUN: llvm-pdbutil pretty -native -compilands %p/../Inputs/empty.pdb \
3 ; RUN: | FileCheck -check-prefix=EMPTY %s
4 ; RUN: llvm-pdbutil pretty -native -compilands %p/../Inputs/big-read.pdb \
5 ; RUN: | FileCheck -check-prefix=BIGREAD %s
6 ; RUN: llvm-pdbutil diadump -native -compilands %p/../Inputs/empty.pdb \
7 ; RUN: | FileCheck -check-prefix=DUMP %s
9 ; Reference output was generated with the DIA reader to ensure that the
10 ; `-native` option produces identical output. The paths output will have
11 ; backslashes even on non-Windows platforms because they are from PDBs built
12 ; on Windows. The path prefixes have been elided because those may be
15 EMPTY:---COMPILANDS---
16 EMPTY: \llvm\test\DebugInfo\PDB\Inputs\empty.obj
19 BIGREAD:---COMPILANDS---
20 BIGREAD: \llvm\test\tools\llvm-symbolizer\pdb\Inputs\test.obj
21 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\_cpu_disp_.obj
22 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\_initsect_.obj
23 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\_sehprolg4_.obj
24 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\_chandler4gs_.obj
25 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\_secchk_.obj
26 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\gs_cookie.obj
27 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\gs_report.obj
28 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\gs_support.obj
29 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\checkcfg.obj
30 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\guard_support.obj
31 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\loadcfg.obj
32 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\dyn_tls_dtor.obj
33 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\dyn_tls_init.obj
34 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\matherr_detection.obj
35 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\ucrt_detection.obj
36 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\argv_mode.obj
37 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\commit_mode.obj
38 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\default_local_stdio_options.obj
39 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\denormal_control.obj
40 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\env_mode.obj
41 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\file_mode.obj
42 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\invalid_parameter_handler.obj
43 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\matherr.obj
44 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\new_mode.obj
45 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\thread_locale.obj
46 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\tncleanup.obj
47 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\exe_main.obj
48 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\initializers.obj
49 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\utility.obj
50 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\ucrt_stubs.obj
51 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\utility_desktop.obj
52 BIGREAD: f:\dd\vctools\crt\vcstartup\build\md\msvcrt_kernel32\obj1r\i386\default_precision.obj
53 BIGREAD: Import:KERNEL32.dll
55 BIGREAD: Import:VCRUNTIME140.dll
56 BIGREAD: VCRUNTIME140.dll
57 BIGREAD: Import:api-ms-win-crt-stdio-l1-1-0.dll
58 BIGREAD: api-ms-win-crt-stdio-l1-1-0.dll
59 BIGREAD: Import:api-ms-win-crt-runtime-l1-1-0.dll
60 BIGREAD: api-ms-win-crt-runtime-l1-1-0.dll
61 BIGREAD: Import:api-ms-win-crt-math-l1-1-0.dll
62 BIGREAD: api-ms-win-crt-math-l1-1-0.dll
63 BIGREAD: Import:api-ms-win-crt-locale-l1-1-0.dll
64 BIGREAD: api-ms-win-crt-locale-l1-1-0.dll
65 BIGREAD: Import:api-ms-win-crt-heap-l1-1-0.dll
66 BIGREAD: api-ms-win-crt-heap-l1-1-0.dll
70 DUMP-NEXT: symIndexId: 2
71 DUMP-NEXT: symTag: Compiland
72 DUMP-NEXT: libraryName: d:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj
73 DUMP-NEXT: name: d:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj
74 DUMP-NEXT: editAndContinueEnabled: 0
77 DUMP-NEXT: symIndexId: 3
78 DUMP-NEXT: symTag: Compiland
79 DUMP-NEXT: libraryName:
80 DUMP-NEXT: name: * Linker *
81 DUMP-NEXT: editAndContinueEnabled: 0