]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/compile_test/sf_bessel_deriv_incl_test.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / sf_bessel_deriv_incl_test.cpp
diff --git a/ceph/src/boost/libs/math/test/compile_test/sf_bessel_deriv_incl_test.cpp b/ceph/src/boost/libs/math/test/compile_test/sf_bessel_deriv_incl_test.cpp
new file mode 100644 (file)
index 0000000..070baca
--- /dev/null
@@ -0,0 +1,53 @@
+//  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/bessel.hpp>
+// #includes all the files that it needs to.
+//
+#include <boost/math/special_functions/bessel_prime.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::cyl_bessel_j_prime<float>(f, f));
+   check_result<double>(boost::math::cyl_bessel_j_prime<double>(d, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::cyl_bessel_j_prime<long double>(l, l));
+#endif
+
+   check_result<float>(boost::math::cyl_neumann_prime<float>(f, f));
+   check_result<double>(boost::math::cyl_neumann_prime<double>(d, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::cyl_neumann_prime<long double>(l, l));
+#endif
+
+   check_result<float>(boost::math::cyl_bessel_i_prime<float>(f, f));
+   check_result<double>(boost::math::cyl_bessel_i_prime<double>(d, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::cyl_bessel_i_prime<long double>(l, l));
+#endif
+
+   check_result<float>(boost::math::cyl_bessel_k_prime<float>(f, f));
+   check_result<double>(boost::math::cyl_bessel_k_prime<double>(d, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::cyl_bessel_k_prime<long double>(l, l));
+#endif
+
+   check_result<float>(boost::math::sph_bessel_prime<float>(u, f));
+   check_result<double>(boost::math::sph_bessel_prime<double>(u, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::sph_bessel_prime<long double>(u, l));
+#endif
+
+   check_result<float>(boost::math::sph_neumann_prime<float>(u, f));
+   check_result<double>(boost::math::sph_neumann_prime<double>(u, d));
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+   check_result<long double>(boost::math::sph_neumann_prime<long double>(u, l));
+#endif
+}