Disable std_mismatch_test when UBSAN is defined

This commit is contained in:
Peter Dimov
2018-01-22 05:40:41 +02:00
parent 0b18289a85
commit 22189fce95

View File

@ -12,10 +12,13 @@
# define _CRT_SECURE_NO_WARNINGS
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#include <iostream>
#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
BOOST_PRAGMA_MESSAGE("Skipping test, BOOST_NO_CXX11_HDR_SYSTEM_ERROR is defined")
int main()
{
std::cout
@ -23,6 +26,11 @@ int main()
" support header <system_error> so interoperation will not be tested.\n";
}
#elif defined(UBSAN)
BOOST_PRAGMA_MESSAGE("Skipping test, UBSAN is defined")
int main() {}
#else
#include <boost/system/error_code.hpp>