]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/throw_test.cpp
1 // throw_test.cpp --------------------------------------------------------===========-//
3 // Copyright Beman Dawes 2010
5 // Distributed under the Boost Software License, Version 1.0.
6 // See www.boost.org/LICENSE_1_0.txt
8 // Library home page is www.boost.org/libs/system
10 //--------------------------------------------------------------------------------------//
12 // See dynamic_link_test.cpp comments for use case.
14 //--------------------------------------------------------------------------------------//
16 #include <boost/system/system_error.hpp>
17 #include <boost/config.hpp>
19 #if defined(THROW_DYN_LINK)
20 # define EXPORT BOOST_SYMBOL_EXPORT
25 EXPORT
void throw_test()
27 throw boost::system::system_error( 9999, boost::system::system_category(), "boo boo" );