core/test/sv_nullptr_fail.cpp

20 lines
400 B
C++

// Copyright 2022 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/detail/string_view.hpp>
#include <boost/config.hpp>
#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