Add CMake tests

This commit is contained in:
Peter Dimov
2019-12-28 18:44:22 +02:00
parent cab10beccd
commit 38d5273ad7
8 changed files with 129 additions and 1 deletions

View File

@ -0,0 +1,19 @@
// Copyright 2019 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <boost/throw_exception.hpp>
#include <stdexcept>
int main()
{
try
{
boost::throw_exception( std::runtime_error( "" ) );
return 1;
}
catch( std::runtime_error const& )
{
return 0;
}
}