]>
git.proxmox.com Git - ceph.git/blob - 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)
6 // Basic sanity check that header <boost/math/tools/config.hpp>
7 // #includes all the files that it needs to.
9 #include <boost/math/common_factor_ct.hpp>
11 template <boost::math::static_gcd_type a
, boost::math::static_gcd_type b
>
12 struct static_value_check
;
14 template <boost::math::static_gcd_type a
>
15 struct static_value_check
<a
, a
>
17 static const boost::math::static_gcd_type value
= a
;
21 void compile_and_link_test()
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
;
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
;