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.
|
|
|
|
|
2010-07-06 10:47:30 +00:00
|
|
|
#include <boost/detail/lightweight_test.hpp>
|
2007-09-21 16:42:27 +00:00
|
|
|
#include <boost/system/error_code.hpp>
|
|
|
|
|
|
|
|
struct foo
|
|
|
|
{
|
|
|
|
foo()
|
|
|
|
{
|
|
|
|
boost::system::error_code ec;
|
2017-10-21 19:19:57 +03:00
|
|
|
ec == boost::system::errc::permission_denied;
|
2007-09-21 16:42:27 +00:00
|
|
|
}
|
|
|
|
} f;
|
|
|
|
|
2010-07-06 10:47:30 +00:00
|
|
|
int main( int, char ** )
|
2007-09-21 16:42:27 +00:00
|
|
|
{
|
2010-07-06 10:47:30 +00:00
|
|
|
return ::boost::report_errors();
|
2007-09-21 16:42:27 +00:00
|
|
|
}
|