]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/system_error_test2.cpp
1 // Copyright 2021 Peter Dimov
2 // Distributed under the Boost Software License, Version 1.0
3 // https://www.boost.org/LICENSE_1_0.txt
5 #include <boost/system/system_error.hpp>
6 #include <boost/core/lightweight_test.hpp>
9 namespace sys
= boost::system
;
14 sys::error_code
ec( 5, sys::generic_category() );
15 sys::system_error
x1( ec
);
20 sys::error_code
ec( 5, sys::system_category() );
21 sys::system_error
x1( ec
);
26 sys::system_error
x1( make_error_code( sys::errc::invalid_argument
) );
31 sys::system_error
x1( 5, sys::generic_category() );
36 sys::system_error
x1( 5, sys::system_category() );
40 return boost::report_errors();