2007-09-21 16:42:27 +00:00
|
|
|
// initialization_test.cpp -------------------------------------------------//
|
|
|
|
|
|
|
|
// Copyright Christoper Kohlhoff 2007
|
|
|
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
// See library home page at http://www.boost.org/libs/system
|
|
|
|
|
|
|
|
// This test verifiies that the error_category vtable does not suffer from
|
|
|
|
// order-of-initialization problems.
|
|
|
|
|
|
|
|
#include <boost/system/error_code.hpp>
|
2018-01-22 05:21:08 +02:00
|
|
|
#include <boost/core/lightweight_test.hpp>
|
2007-09-21 16:42:27 +00:00
|
|
|
|
|
|
|
struct foo
|
|
|
|
{
|
|
|
|
foo()
|
|
|
|
{
|
|
|
|
boost::system::error_code ec;
|
2018-01-22 05:21:08 +02:00
|
|
|
BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
|
2007-09-21 16:42:27 +00:00
|
|
|
}
|
|
|
|
} f;
|
|
|
|
|
2018-01-22 05:21:08 +02:00
|
|
|
int main()
|
2007-09-21 16:42:27 +00:00
|
|
|
{
|
2018-01-22 05:21:08 +02:00
|
|
|
return boost::report_errors();
|
2007-09-21 16:42:27 +00:00
|
|
|
}
|