]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/math/test/test_pFq.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / test_pFq.cpp
CommitLineData
92f5a8d4
TL
1// (C) Copyright John Maddock 2006.
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#include "test_pFq.hpp"
7
8#include <boost/multiprecision/cpp_bin_float.hpp>
9
10#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER < 190023026)
11//
12// Early msvc versions have <initializer_list> but can't handle
13// argument deduction of actual initializer_lists :(
14//
15#define DISABLE_TESTS
16#endif
17
18BOOST_AUTO_TEST_CASE( test_main )
19{
20#ifndef DISABLE_TESTS
21#if !defined(TEST) || (TEST == 2)
22 test_spots(0.0F, "float");
23#endif
24#if !defined(TEST) || (TEST == 3)
25 test_spots(0.0, "double");
26#endif
27#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
28#if (!defined(TEST) || (TEST == 4)) && (DBL_MAX_EXP != LDBL_MAX_EXP)
29 test_spots(0.0L, "long double");
30#endif
31#ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS
32#if !defined(TEST) || (TEST == 5)
33 test_spots(boost::math::concepts::real_concept(0.1), "real_concept");
34#endif
35#endif
36#endif
1e59de90 37#if (!defined(TEST) || (TEST == 6)) && !defined(__clang__)
92f5a8d4
TL
38 test_spots(boost::multiprecision::cpp_bin_float_quad(), "cpp_bin_float_quad");
39#endif
1e59de90 40#if (!defined(TEST) || (TEST == 7)) && !defined(__clang__)
92f5a8d4
TL
41 typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<40> > dec_40;
42 test_spots(dec_40(), "dec_40");
43#endif
44#endif
45}
46