]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/barycentric_rational_incl_test.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / barycentric_rational_incl_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/special_functions/gamma.hpp>
7 // #includes all the files that it needs to.
8 //
9
10 #ifdef _MSC_VER
11 #pragma warning(disable:4459)
12 #endif
13
14 #include <boost/math/interpolators/barycentric_rational.hpp>
15 //
16 // Note this header includes no other headers, this is
17 // important if this test is to be meaningful:
18 //
19 #include "test_compile_result.hpp"
20
21 void compile_and_link_test()
22 {
23 double data[] = { 1, 2, 3 };
24 double y[] = { 34, 56, 67 };
25 boost::math::barycentric_rational<double> s(data, y, 3, 2);
26 check_result<double>(s(1.0));
27 }