diff --git a/test/sv_nullptr_fail.cpp b/test/sv_nullptr_fail.cpp index 2afbcd0..d862038 100644 --- a/test/sv_nullptr_fail.cpp +++ b/test/sv_nullptr_fail.cpp @@ -3,8 +3,17 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include + +#if defined(BOOST_NO_CXX11_NULLPTR) + +#error BOOST_NO_CXX11_NULLPTR is defined, test will be skipped. + +#else int main() { return boost::core::string_view( nullptr ).size() == 0; } + +#endif