Add throw_from_library_test

This commit is contained in:
Peter Dimov
2018-09-25 20:55:04 +03:00
parent ee45839a78
commit 614cbc4f34
8 changed files with 173 additions and 6 deletions

14
test/lib2_throw.cpp Normal file
View File

@ -0,0 +1,14 @@
// Copyright 2018 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 "lib2_throw.hpp"
#include <boost/throw_exception.hpp>
void lib2::f()
{
boost::throw_exception( lib2::exception() );
}