2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-27 17:12:22 +00:00
Files
math/test/test_compile_test_and_run.cpp
2024-02-13 15:20:47 +01:00

37 lines
818 B
C++

// Copyright John Maddock 2014.
// Copyright Christopher Kormanyos 2024.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/core/lightweight_test.hpp>
#include <boost/cstdfloat.hpp>
#include "compile_test/instantiate.hpp"
namespace local
{
auto instantiate_runner() -> void
{
#if defined(BOOST_FLOAT64_C)
instantiate(static_cast<boost::float64_t>(BOOST_FLOAT64_C(1.23)));
BOOST_TEST(::instantiate_runner_result<boost::float64_t>::value);
#else
BOOST_TEST(true);
#endif
}
}
auto main() -> int
{
local::instantiate_runner();
const auto result_is_ok = (boost::report_errors() == 0);
return (result_is_ok ? 0 : -1);
}