Files
boost_exception/test/2-throw_exception_no_exceptions_test.cpp

27 lines
537 B
C++
Raw Normal View History

2009-04-07 03:02:15 +00:00
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
2008-09-11 18:15:25 +00:00
//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)
#define BOOST_NO_EXCEPTIONS
#include <boost/throw_exception.hpp>
class my_exception: public std::exception { };
namespace
boost
{
void
throw_exception( std::exception const & )
{
exit(0);
2008-09-11 18:15:25 +00:00
}
}
int
main()
{
boost::throw_exception(my_exception());
return 1;
2008-09-11 18:15:25 +00:00
}