]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/std_interop_test11.cpp
8374e1afc08ba3dbeb805fb1b6d1e3463a37659d
1 // Copyright 2021 Peter Dimov.
2 // Distributed under the Boost Software License, Version 1.0.
3 // http://www.boost.org/LICENSE_1_0.txt
5 #include <boost/system/error_code.hpp>
6 #include <boost/core/lightweight_test.hpp>
7 #include <boost/config/pragma_message.hpp>
8 #include <boost/config.hpp>
11 #if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
13 BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined" )
16 #elif defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000
18 BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_LIBSTDCXX_VERSION < 50000" )
23 #include <system_error>
28 boost::system::error_code ec
= std::io_errc::stream
;
30 BOOST_TEST( ec
== std::io_errc::stream
);
31 BOOST_TEST_NOT( ec
!= std::io_errc::stream
);
35 BOOST_TEST_NOT( ec
== std::io_errc::stream
);
36 BOOST_TEST( ec
!= std::io_errc::stream
);
38 ec
= std::io_errc::stream
;
40 BOOST_TEST( ec
== std::io_errc::stream
);
41 BOOST_TEST_NOT( ec
!= std::io_errc::stream
);
44 return boost::report_errors();