]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/common_factor_rt_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_rt.hpp>
11 // Note this header includes no other headers, this is
12 // important if this test is to be meaningful:
14 #include "test_compile_result.hpp"
16 inline void check_result_imp(std::pair
<unsigned long, unsigned long*>, std::pair
<unsigned long, unsigned long*>) {}
19 void compile_and_link_test()
22 check_result
<int>(boost::math::gcd(i
, j
));
23 check_result
<int>(boost::math::lcm(i
, j
));
25 unsigned long arr
[] = { 45, 56, 99, 101 };
26 check_result
<std::pair
<unsigned long, unsigned long*> >(boost::math::gcd_range(&arr
[0], &arr
[0] + 4));