1; This testcase checks to make sure that we can write PDB files. It 2; works by first reading a known good PDB file and dumping the contents 3; to YAML. Then it tries to reconstruct as much of the original PDB as 4; possible, although depending on what flags are specified when generating 5; the YAML, the PDB might be missing data required for any standard tool 6; to recognize it. Finally, it dumps the same set of fields from the newly 7; constructed PDB to YAML, and verifies that the YAML is the same as the 8; original YAML generated from the good PDB. 9; 10; RUN: llvm-pdbdump pdb2yaml -stream-metadata -stream-directory -pdb-stream %p/Inputs/empty.pdb > %t.1 11; RUN: llvm-pdbdump yaml2pdb -pdb=%t.2 %t.1 12; RUN: llvm-pdbdump pdb2yaml -stream-metadata -stream-directory -pdb-stream %t.2 > %t.3 13; RUN: diff %t.1 %t.3 14