summaryrefslogtreecommitdiff
path: root/libs/math/test/compile_test/sf_ellint_d_incl_test.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /libs/math/test/compile_test/sf_ellint_d_incl_test.cpp
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/math/test/compile_test/sf_ellint_d_incl_test.cpp')
-rw-r--r--libs/math/test/compile_test/sf_ellint_d_incl_test.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/math/test/compile_test/sf_ellint_d_incl_test.cpp b/libs/math/test/compile_test/sf_ellint_d_incl_test.cpp
new file mode 100644
index 000000000..c7c4249a5
--- /dev/null
+++ b/libs/math/test/compile_test/sf_ellint_d_incl_test.cpp
@@ -0,0 +1,29 @@
+// Copyright John Maddock 2006.
+// 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 <boost/math/special_functions/ellint_d.hpp>
+// #includes all the files that it needs to.
+//
+#include <boost/math/special_functions/ellint_d.hpp>
+//
+// 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<float>(boost::math::ellint_d<float>(f, f));
+ check_result<double>(boost::math::ellint_d<double>(d, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ check_result<long double>(boost::math::ellint_d<long double>(l, l));
+#endif
+
+ check_result<float>(boost::math::ellint_d<float>(f));
+ check_result<double>(boost::math::ellint_d<double>(d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ check_result<long double>(boost::math::ellint_d<long double>(l));
+#endif
+}