• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 Peter Dimov
2 // Distributed under the Boost Software License, Version 1.0
3 // http://www.boost.org/LICENSE_1_0.txt
4 
5 #include <boost/system/system_category.hpp>
6 #include <boost/core/lightweight_test.hpp>
7 
8 // Tests whether system_category() is functional when only
9 // system_category.hpp is included
10 
11 namespace sys = boost::system;
12 
main()13 int main()
14 {
15     sys::error_category const & cat = sys::system_category();
16 
17     BOOST_TEST_CSTR_EQ( cat.name(), "system" );
18 
19     return boost::report_errors();
20 }
21