Add CMake tests to ci.yml

This commit is contained in:
Peter Dimov
2021-10-17 08:46:35 +03:00
parent 8f163568f4
commit 3487450f62
5 changed files with 213 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright 2006-2009 Daniel James.
// Copyright 2021 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)
#include <boost/container_hash/hash.hpp>
#include <deque>
int main()
{
std::deque<int> x;
x.push_back( 1 );
x.push_back( 2 );
return boost::hash< std::deque<int> >()( x ) == boost::hash_value( x )? 0: 1;
}