has_libstdcxx_tr1.cpp 418 B

1234567891011121314151617
  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. #include <tr1/cmath>
  6. int main()
  7. {
  8. long double d = 1;
  9. d = std::tr1::erf(d);
  10. d = std::tr1::erfc(d);
  11. d = std::tr1::tgamma(d);
  12. d = std::tr1::lgamma(d);
  13. return d != 0 ? 0 : 1;
  14. }