summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/BinaryFormat/TestFileMagic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/BinaryFormat/TestFileMagic.cpp')
-rw-r--r--llvm/unittests/BinaryFormat/TestFileMagic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/BinaryFormat/TestFileMagic.cpp b/llvm/unittests/BinaryFormat/TestFileMagic.cpp
index ca4ca9a2728..5f132ba4144 100644
--- a/llvm/unittests/BinaryFormat/TestFileMagic.cpp
+++ b/llvm/unittests/BinaryFormat/TestFileMagic.cpp
@@ -81,6 +81,8 @@ const char windows_resource[] =
const char macho_dynamically_linked_shared_lib_stub[] =
"\xfe\xed\xfa\xce........\x00\x00\x00\x09............";
const char ms_dos_stub_broken[] = "\x4d\x5a\x20\x20";
+const char pdb[] = "Microsoft C/C++ MSF 7.00\r\n\x1a"
+ "DS\x00\x00\x00";
TEST_F(MagicTest, Magic) {
struct type {
@@ -110,6 +112,7 @@ TEST_F(MagicTest, Magic) {
DEFINE(macho_dsym_companion),
DEFINE(macho_kext_bundle),
DEFINE(windows_resource),
+ DEFINE(pdb),
{"ms_dos_stub_broken", ms_dos_stub_broken, sizeof(ms_dos_stub_broken),
file_magic::unknown},
#undef DEFINE
OpenPOWER on IntegriCloud