]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/pow_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / math / test / pow_test.cpp
index d004f0d9bd6ddb55cb7be6f1cff524a7ffaf48db..6c45d893b60eed56c837b1f0c40a757f79dcc226 100644 (file)
@@ -194,6 +194,14 @@ BOOST_AUTO_TEST_CASE( test_main )
     test_with_big_exponents<boost::math::concepts::real_concept, -1>();
 #endif
 
+    #ifndef BOOST_NO_CXX14_CONSTEXPR
+    static_assert(boost::math::pow<8>(2)==256, "Pow is not constexpr");
+    static_assert(boost::math::pow<9>(2)==512, "Pow is not constexpr");
+    static_assert(boost::math::pow<2>(2)==4,   "Pow is not constexpr");
+    static_assert(boost::math::pow<1>(2)==2,   "Pow is not constexpr");
+    static_assert(boost::math::pow<0>(2)==1,   "Pow is not constexpr");
+    #endif
+
     test_return_types();
 
     test_error_policy();