mirror of
https://github.com/boostorg/system.git
synced 2026-04-19 16:18:43 +02:00
Add system_category.hpp
This commit is contained in:
21
test/system_category_test2.cpp
Normal file
21
test/system_category_test2.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2020 Peter Dimov
|
||||
// Distributed under the Boost Software License, Version 1.0
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/system/system_category.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <cstring>
|
||||
|
||||
// Tests whether system_category() is functional when only
|
||||
// system_category.hpp is included
|
||||
|
||||
namespace sys = boost::system;
|
||||
|
||||
int main()
|
||||
{
|
||||
sys::error_category const & cat = sys::system_category();
|
||||
|
||||
BOOST_TEST_CSTR_EQ( cat.name(), "system" );
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in New Issue
Block a user