]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/exception/test/2-throw_exception_no_exceptions_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / exception / test / 2-throw_exception_no_exceptions_test.cpp
CommitLineData
7c673cae
FG
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
1e59de90
TL
6#include <boost/config.hpp>
7
8#if !defined( BOOST_NO_EXCEPTIONS )
9# error This program requires exception handling disabled.
10#endif
11
7c673cae 12#include <boost/throw_exception.hpp>
f67539c2 13#include <stdlib.h>
7c673cae
FG
14
15class my_exception: public std::exception { };
16
7c673cae
FG
17namespace
18boost
19 {
20 void
21 throw_exception( std::exception const & )
22 {
92f5a8d4 23 exit(0);
7c673cae
FG
24 }
25 }
26
27int
28main()
29 {
30 boost::throw_exception(my_exception());
92f5a8d4 31 return 1;
7c673cae 32 }