]> granicus.if.org Git - llvm/commitdiff
[CodeView] Add coverage test for r338308 (Fixed crash in type merging)
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Tue, 31 Jul 2018 19:30:03 +0000 (19:30 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Tue, 31 Jul 2018 19:30:03 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338423 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/PDB/pdb-invalid-type.test [new file with mode: 0644]

diff --git a/test/DebugInfo/PDB/pdb-invalid-type.test b/test/DebugInfo/PDB/pdb-invalid-type.test
new file mode 100644 (file)
index 0000000..33ea8d9
--- /dev/null
@@ -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
+...