]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | // Copyright 2020 Peter Dimov. |
2 | // Distributed under the Boost Software License, Version 1.0. | |
3 | // http://www.boost.org/LICENSE_1_0.txt | |
4 | ||
5 | #include <boost/system/errc.hpp> | |
6 | #include <boost/system/is_error_condition_enum.hpp> | |
7 | #include <boost/core/lightweight_test.hpp> | |
8 | ||
9 | int main() | |
10 | { | |
11 | BOOST_TEST_EQ( static_cast<int>( boost::system::errc::success ), 0 ); | |
12 | BOOST_TEST_EQ( static_cast<int>( boost::system::errc::no_such_file_or_directory ), ENOENT ); | |
13 | BOOST_TEST_EQ( static_cast<int>( boost::system::errc::address_family_not_supported ), EAFNOSUPPORT ); | |
14 | ||
15 | BOOST_TEST( boost::system::is_error_condition_enum< boost::system::errc::errc_t >::value ); | |
16 | ||
17 | return boost::report_errors(); | |
18 | } |