]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/exception/test/4-throw_exception_no_both_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / exception / test / 4-throw_exception_no_both_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
6#define BOOST_NO_EXCEPTIONS
7#define BOOST_EXCEPTION_DISABLE
8#include <boost/throw_exception.hpp>
7c673cae
FG
9
10class my_exception: public std::exception { };
11
7c673cae
FG
12namespace
13boost
14 {
15 void
16 throw_exception( std::exception const & )
17 {
92f5a8d4 18 exit(0);
7c673cae
FG
19 }
20 }
21
22int
23main()
24 {
25 boost::throw_exception(my_exception());
92f5a8d4 26 return 1;
7c673cae 27 }