]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/reporting/accuracy/has_libstdcxx_tr1.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / math / reporting / accuracy / has_libstdcxx_tr1.cpp
1 // Copyright John Maddock 2015.
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 <tr1/cmath>
7
8 int main()
9 {
10 long double d = 1;
11
12 d = std::tr1::erf(d);
13 d = std::tr1::erfc(d);
14 d = std::tr1::tgamma(d);
15 d = std::tr1::lgamma(d);
16 return d != 0 ? 0 : 1;
17 }