test_bad_function_call.cpp 330 B

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