1 2 // Copyright 2018 Peter Dimov. 3 // Distributed under the Boost Software License, Version 1.0. 4 5 #include <boost/function.hpp> 6 #include <boost/core/lightweight_test.hpp> 7 8 void throw_bad_function_call(); 9 main()10int main() 11 { 12 BOOST_TEST_THROWS( throw_bad_function_call(), boost::bad_function_call ); 13 return boost::report_errors(); 14 } 15