Add throw/catch test for bad_function_call

This commit is contained in:
Peter Dimov
2018-10-19 04:04:06 +03:00
committed by James E. King III
parent 755d3c2001
commit 5b2acbc175
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// Copyright 2018 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/function.hpp>
#include <boost/core/lightweight_test.hpp>
void throw_bad_function_call();
int main()
{
BOOST_TEST_THROWS( throw_bad_function_call(), boost::bad_function_call );
return boost::report_errors();
}