summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2018-07-31 19:30:03 +0000
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2018-07-31 19:30:03 +0000
commitb92d3ad762ad4e95d6e0d7fcb27efa7f2736e69f (patch)
tree94353d5a24d60b4e9f3394f669db73ac863744e2 /llvm/test/DebugInfo/PDB
parent9fe9a95f65acdcee70bc4f519639e55495e515dc (diff)
downloadbcm5719-llvm-b92d3ad762ad4e95d6e0d7fcb27efa7f2736e69f.tar.gz
bcm5719-llvm-b92d3ad762ad4e95d6e0d7fcb27efa7f2736e69f.zip
[CodeView] Add coverage test for r338308 (Fixed crash in type merging)
llvm-svn: 338423
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/pdb-invalid-type.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/pdb-invalid-type.test b/llvm/test/DebugInfo/PDB/pdb-invalid-type.test
new file mode 100644
index 00000000000..33ea8d90452
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/pdb-invalid-type.test
@@ -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
+...
OpenPOWER on IntegriCloud