1// header_only_test.cpp -----------------------------------------------------//
2
3// Copyright Beman Dawes 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//----------------------------------------------------------------------------//
11
12#include <boost/config/warning_disable.hpp>
13
14#define BOOST_ERROR_CODE_HEADER_ONLY
15
16#include <boost/detail/lightweight_test.hpp>
17#include <boost/system/error_code.hpp>
18
19int main()
20{
21 boost::system::error_code ec( 0, boost::system::system_category() );
22 (void)ec;
23
24 return ::boost::report_errors();
25}
26

source code of boost/libs/system/test/header_only_test.cpp