conv_fail_48.cpp 491 B

1234567891011121314151617181920212223
  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_GMP
  6. #include <boost/multiprecision/gmp.hpp>
  7. using namespace boost::multiprecision;
  8. int main()
  9. {
  10. mpf_float_100 f(2);
  11. mpf_float_50 f2;
  12. f2 = f;
  13. }
  14. #else
  15. #error "Nothing to test without GMP!"
  16. #endif