// Copyright 2021 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt #include #include #include #include #include #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000 BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_LIBSTDCXX_VERSION < 50000" ) int main() {} #else #include int main() { { boost::system::error_code ec = std::io_errc::stream; BOOST_TEST( ec == std::io_errc::stream ); BOOST_TEST_NOT( ec != std::io_errc::stream ); ec.clear(); BOOST_TEST_NOT( ec == std::io_errc::stream ); BOOST_TEST( ec != std::io_errc::stream ); ec = std::io_errc::stream; BOOST_TEST( ec == std::io_errc::stream ); BOOST_TEST_NOT( ec != std::io_errc::stream ); } return boost::report_errors(); } #endif