| 1 | // Copyright 2022 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/assert/source_location.hpp> |
| 7 | #include <boost/core/lightweight_test.hpp> |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | BOOST_STATIC_CONSTEXPR boost::source_location loc = BOOST_CURRENT_LOCATION; |
| 12 | |
| 13 | BOOST_TEST( make_error_code( boost::system::errc::no_such_file_or_directory, &loc ).has_location() ); |
| 14 | BOOST_TEST_EQ( make_error_code( boost::system::errc::no_such_file_or_directory, &loc ).location().to_string(), loc.to_string() ); |
| 15 | |
| 16 | return boost::report_errors(); |
| 17 | } |
| 18 |
