diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-14 16:03:29 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-14 16:03:29 +0000 |
commit | 6ede706d4611643cda28dd18abb9f874b3869951 (patch) | |
tree | 4ba624a9ec0a7ee79a5a70de150a6358b71067ca /llvm/unittests/Support/CompressionTest.cpp | |
parent | 16b934d624c6202029c5244994915f9965ffd4be (diff) | |
download | bcm5719-llvm-6ede706d4611643cda28dd18abb9f874b3869951.tar.gz bcm5719-llvm-6ede706d4611643cda28dd18abb9f874b3869951.zip |
Expose CRC-32 implementation from zlib
llvm-svn: 188380
Diffstat (limited to 'llvm/unittests/Support/CompressionTest.cpp')
-rw-r--r-- | llvm/unittests/Support/CompressionTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/Support/CompressionTest.cpp b/llvm/unittests/Support/CompressionTest.cpp index c8e2cd9f02b..c0a9adadb78 100644 --- a/llvm/unittests/Support/CompressionTest.cpp +++ b/llvm/unittests/Support/CompressionTest.cpp @@ -63,6 +63,12 @@ TEST(CompressionTest, Zlib) { TestZlibCompression(BinaryDataStr, zlib::DefaultCompression); } +TEST(CompressionTest, ZlibCRC32) { + EXPECT_EQ( + 0x414FA339U, + zlib::crc32(StringRef("The quick brown fox jumps over the lazy dog"))); +} + #endif } |