[llvm] r338423 - [CodeView] Add coverage test for r338308 (Fixed crash in type merging)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 31 12:30:03 PDT 2018
Author: aganea
Date: Tue Jul 31 12:30:03 2018
New Revision: 338423
URL: http://llvm.org/viewvc/llvm-project?rev=338423&view=rev
Log:
[CodeView] Add coverage test for r338308 (Fixed crash in type merging)
Added:
llvm/trunk/test/DebugInfo/PDB/pdb-invalid-type.test
Added: llvm/trunk/test/DebugInfo/PDB/pdb-invalid-type.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/pdb-invalid-type.test?rev=338423&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/pdb-invalid-type.test (added)
+++ llvm/trunk/test/DebugInfo/PDB/pdb-invalid-type.test Tue Jul 31 12:30:03 2018
@@ -0,0 +1,15 @@
+# RUN: llvm-pdbutil yaml2pdb -pdb=%t1.pdb %p/Inputs/one-symbol.yaml
+# RUN: llvm-pdbutil yaml2pdb -pdb=%t2.pdb %s
+# RUN: not llvm-pdbutil merge -pdb=%t.pdb %t1.pdb %t2.pdb 2>&1 | FileCheck %s
+
+# CHECK: CodeView Error: The CodeView record is corrupted.
+
+---
+TpiStream:
+ Records:
+ # uint32_t* [Index: 0x1000]
+ - Kind: LF_POINTER
+ Pointer:
+ ReferentType: 4097
+ Attrs: 32778
+...
More information about the llvm-commits
mailing list