diff options
author | Rui Ueyama <ruiu@google.com> | 2013-11-15 21:22:02 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-11-15 21:22:02 +0000 |
commit | e448f9e418ffcec6fdadfc51af213f0d11645296 (patch) | |
tree | 44a130087d4fb54035ebfcbfc2f1059860b2132e /llvm/unittests/Support/Path.cpp | |
parent | 94f2271d6342ddda5812ae639e873a7913acdc83 (diff) | |
download | llvm-e448f9e418ffcec6fdadfc51af213f0d11645296.zip llvm-e448f9e418ffcec6fdadfc51af213f0d11645296.tar.gz llvm-e448f9e418ffcec6fdadfc51af213f0d11645296.tar.bz2 |
Path: Recognize COFF import library file magic.
Summary: Make identify_magic to recognize COFF import file.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2165
llvm-svn: 194852
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 2323029..0316241 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -419,6 +419,7 @@ TEST_F(FileSystemTest, DirectoryIteration) { const char archive[] = "!<arch>\x0A"; const char bitcode[] = "\xde\xc0\x17\x0b"; const char coff_object[] = "\x00\x00......"; +const char coff_import_library[] = "\x00\x00\xff\xff...."; const char elf_relocatable[] = { 0x7f, 'E', 'L', 'F', 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; const char macho_universal_binary[] = "\xca\xfe\xba\xbe...\0x00"; @@ -447,6 +448,7 @@ TEST_F(FileSystemTest, Magic) { DEFINE(archive), DEFINE(bitcode), DEFINE(coff_object), + DEFINE(coff_import_library), DEFINE(elf_relocatable), DEFINE(macho_universal_binary), DEFINE(macho_object), |