Files
system/test/after_main_test.cpp

31 lines
616 B
C++
Raw Normal View History

2018-09-22 15:17:47 +03:00
// Copyright 2018 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/core/quick_exit.hpp>
2018-09-22 15:40:19 +03:00
#include <cerrno>
2018-09-22 15:17:47 +03:00
using namespace boost::system;
struct Z
{
~Z()
{
BOOST_TEST_CSTR_EQ( generic_category().name(), "generic" );
BOOST_TEST_CSTR_EQ( system_category().name(), "system" );
boost::quick_exit( boost::report_errors() );
}
};
static Z z;
2018-09-22 15:40:19 +03:00
static error_code e1( 1, system_category() );
static error_code e2( ENOENT, generic_category() );
2018-09-22 15:17:47 +03:00
int main()
{
}