]>
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 // define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows
17 // the library is being built (possibly exporting rather than importing code)
18 #define BOOST_SYSTEM_SOURCE
20 #include <boost/system/system_error.hpp>
26 BOOST_SYSTEM_DECL
void throw_test()
28 throw system_error(9999, system_category(), "boo boo");