-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add std_interop_test16.cpp. Refs #102.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023 Peter Dimov. | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// http://www.boost.org/LICENSE_1_0.txt | ||
|
||
#include <boost/system/detail/config.hpp> | ||
#include <boost/config/pragma_message.hpp> | ||
|
||
#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) | ||
|
||
BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) | ||
int main() {} | ||
|
||
#else | ||
|
||
#include <boost/asio/error.hpp> | ||
#include <boost/core/lightweight_test.hpp> | ||
#include <system_error> | ||
|
||
bool init_lwt = (boost::core::lwt_init(), true); | ||
|
||
std::error_category const & cat = boost::asio::error::get_misc_category(); | ||
|
||
int main() | ||
{ | ||
BOOST_TEST_CSTR_EQ( cat.name(), "asio.misc" ); | ||
return boost::report_errors(); | ||
} | ||
|
||
|
||
#endif |