]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/system/test/initialization_test.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / system / test / initialization_test.cpp
CommitLineData
7c673cae
FG
1// initialization_test.cpp -------------------------------------------------//
2
3// Copyright Christoper Kohlhoff 2007
4
5// Distributed under the Boost Software License, Version 1.0. (See accompanying
6// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8// See library home page at http://www.boost.org/libs/system
9
10// This test verifiies that the error_category vtable does not suffer from
11// order-of-initialization problems.
12
7c673cae 13#include <boost/system/error_code.hpp>
11fdf7f2 14#include <boost/core/lightweight_test.hpp>
7c673cae
FG
15
16struct foo
17{
18 foo()
19 {
20 boost::system::error_code ec;
11fdf7f2 21 BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
7c673cae
FG
22 }
23} f;
24
11fdf7f2 25int main()
7c673cae 26{
11fdf7f2 27 return boost::report_errors();
7c673cae 28}