]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/common_factor_ct_inc_test.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / common_factor_ct_inc_test.cpp
1 // Copyright John Maddock 2017.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 //
6 // Basic sanity check that header <boost/math/tools/config.hpp>
7 // #includes all the files that it needs to.
8 //
9 #include <boost/math/common_factor_ct.hpp>
10
11 template <boost::math::static_gcd_type a, boost::math::static_gcd_type b>
12 struct static_value_check;
13
14 template <boost::math::static_gcd_type a>
15 struct static_value_check<a, a>
16 {
17 static const boost::math::static_gcd_type value = a;
18 };
19
20
21 void compile_and_link_test()
22 {
23 typedef static_value_check<boost::math::static_gcd<42, 30>::value, 6> checked_type;
24 boost::math::static_gcd_type result = checked_type::value;
25 (void)result;
26 typedef static_value_check<boost::math::static_lcm<18, 30>::value, 90> checked_type_2;
27 boost::math::static_gcd_type result_2 = checked_type_2::value;
28 (void)result_2;
29 }