mirror of
https://github.com/boostorg/system.git
synced 2025-05-12 05:31:49 +00:00
22 lines
444 B
C++
22 lines
444 B
C++
// Copyright 2022 Peter Dimov.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// http://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/system/error_code.hpp>
|
|
#include <boost/core/lightweight_test.hpp>
|
|
#include <sstream>
|
|
|
|
namespace sys = boost::system;
|
|
|
|
int main()
|
|
{
|
|
{
|
|
std::wostringstream os;
|
|
os << sys::error_code();
|
|
|
|
BOOST_TEST( os.str() == L"system:0" );
|
|
}
|
|
|
|
return boost::report_errors();
|
|
}
|