]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/common_factor_rt_inc_test.cpp
update sources to v12.2.3
[ceph.git] / 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)
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_rt.hpp>
10 //
11 // Note this header includes no other headers, this is
12 // important if this test is to be meaningful:
13 //
14 #include "test_compile_result.hpp"
15
16 inline void check_result_imp(std::pair<unsigned long, unsigned long*>, std::pair<unsigned long, unsigned long*>) {}
17
18
19 void compile_and_link_test()
20 {
21 int i(3), j(4);
22 check_result<int>(boost::math::gcd(i, j));
23 check_result<int>(boost::math::lcm(i, j));
24
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));
27
28 }