summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-10-27 00:45:51 +0000
committerReid Kleckner <rnk@google.com>2017-10-27 00:45:51 +0000
commit145090f124039a3f02819030d762f1d74d2cba1b (patch)
tree4fd7b50f3251a693df2e1c7667dec6c75c58ab38 /llvm/test/DebugInfo/PDB
parent32bcb5d7fb43a4c1c81632441ec5271d94d0caf2 (diff)
downloadbcm5719-llvm-145090f124039a3f02819030d762f1d74d2cba1b.tar.gz
bcm5719-llvm-145090f124039a3f02819030d762f1d74d2cba1b.zip
[PDB] Handle an empty globals hash table with no buckets
llvm-svn: 316722
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/Inputs/pdbdump-globals-empty.pdbbin0 -> 86016 bytes
-rw-r--r--llvm/test/DebugInfo/PDB/pdbdump-globals-empty.test6
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/Inputs/pdbdump-globals-empty.pdb b/llvm/test/DebugInfo/PDB/Inputs/pdbdump-globals-empty.pdb
new file mode 100644
index 00000000000..a688d399895
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/Inputs/pdbdump-globals-empty.pdb
Binary files differ
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-globals-empty.test b/llvm/test/DebugInfo/PDB/pdbdump-globals-empty.test
new file mode 100644
index 00000000000..59a06ea5e85
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/pdbdump-globals-empty.test
@@ -0,0 +1,6 @@
+RUN: llvm-pdbutil dump -globals %S/Inputs/pdbdump-globals-empty.pdb | FileCheck %s
+
+CHECK: Global Symbols
+CHECK: ============================================================
+CHECK: Records
+CHECK-NOT: S_
OpenPOWER on IntegriCloud