summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb2
-rw-r--r--llvm/test/DebugInfo/PDB/pdbdump-headers.test3
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb b/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb
new file mode 100644
index 00000000000..fadd8833e4b
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb
@@ -0,0 +1,2 @@
+Microsoft C/C++ MSF 7.00
+DS \ No newline at end of file
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-headers.test b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
index d6d4bcda242..92999827e45 100644
--- a/llvm/test/DebugInfo/PDB/pdbdump-headers.test
+++ b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
@@ -1,5 +1,6 @@
; RUN: llvm-pdbdump --dump-headers %p/Inputs/empty.pdb | FileCheck -check-prefix=EMPTY %s
; RUN: llvm-pdbdump --dump-headers %p/Inputs/big-read.pdb | FileCheck -check-prefix=BIG %s
+; RUN: llvm-pdbdump --dump-headers %p/Inputs/bad-block-size.pdb | FileCheck -check-prefix=BAD-BLOCK-SIZE %s
; EMPTY: BlockSize: 4096
; EMPTY-NEXT: Unknown0: 2
@@ -977,3 +978,5 @@ BIG-NEXT: Symbol Byte Size: 3080
BIG-NEXT: Type Server Index: 0
BIG-NEXT: Has EC Info: 0
BIG-NEXT: 0 Contributing Source Files:
+
+BAD-BLOCK-SIZE: The file has an unrecognized format.
OpenPOWER on IntegriCloud