• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
13 #include <boost/system/error_code.hpp>
14 #include <boost/core/lightweight_test.hpp>
15 
16 struct foo
17 {
foofoo18   foo()
19   {
20     boost::system::error_code ec;
21     BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
22   }
23 } f;
24 
main()25 int main()
26 {
27   return boost::report_errors();
28 }
29