]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/compile_test/sf_factorials_incl_test.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / sf_factorials_incl_test.cpp
index d640a4c104faefb846450708181c6df720da33df..f9c5426998ec3891eeb9ca769833469e32f283ea 100644 (file)
@@ -37,6 +37,18 @@ void compile_and_link_test()
    check_result<double>(boost::math::falling_factorial<double>(d, u));
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    check_result<long double>(boost::math::falling_factorial<long double>(l, u));
+#endif
+
+   //
+   // Add constexpr tests here:
+   //
+#ifdef BOOST_MATH_HAVE_CONSTEXPR_TABLES
+   constexpr float ce_f = boost::math::unchecked_factorial<float>(2);
+   constexpr float ce_d = boost::math::unchecked_factorial<double>(2);
+   constexpr float ce_l = boost::math::unchecked_factorial<long double>(2);
+#ifdef BOOST_MATH_USE_FLOAT128
+   constexpr __float128 ce_q = boost::math::unchecked_factorial<__float128>(2);
+#endif
 #endif
 }