conv_fail_47.cpp 495 B

123456789101112131415161718192021222324
  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. void foo(mpf_float_50);
  9. int main()
  10. {
  11. mpf_float_100 f(2);
  12. foo(f);
  13. }
  14. #else
  15. #error "Nothing to test without GMP!"
  16. #endif