pdbdump-readwrite.test 1.53 KB
RUN: llvm-pdbutil pdb2yaml -modules -module-files -dbi-stream \
RUN:   -pdb-stream -string-table -tpi-stream -stream-directory \
RUN:   -stream-metadata %p/Inputs/empty.pdb > %t.1
RUN: llvm-pdbutil yaml2pdb -pdb=%t.2 %t.1

RUN: llvm-pdbutil dump -summary -string-table -types %p/Inputs/empty.pdb | FileCheck %s
RUN: llvm-pdbutil dump -summary -string-table -types %t.2 | FileCheck %s


CHECK:                                Summary
CHECK-NEXT: ============================================================
CHECK-NEXT:  Block Size: 4096
CHECK-NEXT:  Number of blocks:
CHECK-NEXT:  Number of streams:
CHECK-NEXT:  Signature: 1424295906
CHECK-NEXT:  Age: 1
CHECK-NEXT:  GUID: {0B355641-86A0-A249-896F-9988FAE52FF0}
CHECK-NEXT:  Features: 0x1
CHECK-NEXT:  Has Debug Info: true
CHECK-NEXT:  Has Types: true
CHECK-NEXT:  Has IDs: true
CHECK-NEXT:  Has Globals:
CHECK-NEXT:  Has Publics:
CHECK-NEXT:  Is incrementally linked: true
CHECK-NEXT:  Has conflicting types: false
CHECK-NEXT:  Is stripped: false
CHECK:                             String Table
CHECK-NEXT: ============================================================
CHECK-NEXT:   ID    | String
CHECK-NEXT:  {{.*}} | 'd:\src\llvm\test\debuginfo\pdb\inputs\predefined c++ attributes (compiler internal)'
CHECK-NEXT:  {{.*}} | 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'
CHECK-NEXT:  {{.*}} | '$T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + = '
CHECK:                          Types (TPI Stream)
CHECK-NEXT: ============================================================
CHECK-NEXT:  Showing 75 records