Add CMake tests

This commit is contained in:
Peter Dimov
2020-01-09 17:43:54 +02:00
parent 5192a345ab
commit 58b4a21deb
7 changed files with 63 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
// Copyright 2019 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/variant2/variant.hpp>
using namespace boost::variant2;
int main()
{
variant<float, int> v( 2 );
return get<1>( v ) == 2? 0: 1;
}