From e0737c56c1e384e05064a0c6e1ac46979371041b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 19 Dec 2018 22:58:32 +0100 Subject: New upstream version 2.0.0+repack --- .../math/test/compile_test/constants_incl_test.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 boost/libs/math/test/compile_test/constants_incl_test.cpp (limited to 'boost/libs/math/test/compile_test/constants_incl_test.cpp') diff --git a/boost/libs/math/test/compile_test/constants_incl_test.cpp b/boost/libs/math/test/compile_test/constants_incl_test.cpp new file mode 100644 index 00000000..039596c7 --- /dev/null +++ b/boost/libs/math/test/compile_test/constants_incl_test.cpp @@ -0,0 +1,24 @@ +// Copyright John Maddock 2012. +// 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) +// +// Basic sanity check that header +// #includes all the files that it needs to. +// +#include +// +// Note this header includes no other headers, this is +// important if this test is to be meaningful: +// +#include "test_compile_result.hpp" + +void compile_and_link_test() +{ + check_result(boost::math::constants::pi()); + check_result(boost::math::constants::pi()); +#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS + check_result(boost::math::constants::pi()); +#endif + +} -- cgit v1.2.3