2
0
mirror of https://github.com/boostorg/crc.git synced 2026-01-19 04:12:07 +00:00
Files
crc/test/quick.cpp
2023-09-27 19:52:08 +03:00

18 lines
367 B
C++

// Copyright 2023 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)
#include <boost/crc.hpp>
#include <cstring>
int main()
{
boost::crc_32_type crc;
char const* data = "Hello, world!";
crc.process_bytes( data, std::strlen( data ) );
return crc.checksum() == 0xEBE6C6E6u? 0: 1;
}