]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/throw_exception/test/throw_exception_no_both_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / throw_exception / test / throw_exception_no_both_test.cpp
1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
2
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #define BOOST_NO_EXCEPTIONS
7 #define BOOST_EXCEPTION_DISABLE
8
9 #include <boost/throw_exception.hpp>
10 #include <cstdlib>
11
12 class my_exception: public std::exception {};
13
14 int main()
15 {
16 boost::throw_exception( my_exception() );
17 return 1;
18 }
19
20 namespace boost
21 {
22
23 void throw_exception( std::exception const & )
24 {
25 std::exit( 0 );
26 }
27
28 } // namespace boost