conv_fail_50.cpp 488 B

12345678910111213141516171819202122
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2012 John Maddock. Distributed under the Boost
  3. // 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. #ifdef TEST_MPFR
  6. #include <boost/multiprecision/mpfr.hpp>
  7. using namespace boost::multiprecision;
  8. int main()
  9. {
  10. mpfr_float_100 f(2);
  11. mpfr_float_50 f2 = f;
  12. }
  13. #else
  14. #error "Nothing to test without GMP!"
  15. #endif