| 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/error_code.hpp> |
| 6 | #include <boost/core/lightweight_test.hpp> |
| 7 | #include <sstream> |
| 8 | |
| 9 | namespace sys = boost::system; |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | { |
| 14 | std::wostringstream os; |
| 15 | os << sys::error_code(); |
| 16 | |
| 17 | BOOST_TEST( os.str() == L"system:0"); |
| 18 | } |
| 19 | |
| 20 | return boost::report_errors(); |
| 21 | } |
| 22 |
