//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. //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 #if defined( BOOST_NO_EXCEPTIONS ) # error This program requires exception handling. #endif #include "visibility_test_lib.hpp" #include #include void BOOST_SYMBOL_IMPORT hidden_throw(); int main() { try { hidden_throw(); BOOST_TEST(false); } catch( my_exception & e ) { BOOST_TEST(boost::get_error_info(e) && *boost::get_error_info(e)==42); } return boost::report_errors(); }