]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/system_category_test2.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / system / test / system_category_test2.cpp
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
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 }