2
0
mirror of https://github.com/boostorg/hash2.git synced 2026-01-19 16:22:15 +00:00
Files
hash2/test/cmake_install_test/main.cpp

18 lines
421 B
C++

// Copyright 2017, 2023 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/hash2/hash_append.hpp>
#include <boost/hash2/fnv1a.hpp>
int main()
{
boost::hash2::fnv1a_32 hash;
char const str[ 6 ] = { 'f', 'o', 'o', 'b', 'a', 'r' };
boost::hash2::hash_append( hash, {}, str );
return hash.result() == 0xbf9cf968ul? 0: 1;
}