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_
5 
6 #ifdef _MSC_VER
7 #  define _SCL_SECURE_NO_WARNINGS
8 #endif
9 
10 #include <boost/multiprecision/mpfr.hpp>
11 #include "test_mixed.hpp"
12 
main()13 int main()
14 {
15    try{
16       typedef boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<100>, boost::multiprecision::et_on> big_type1;
17       typedef boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<50>, boost::multiprecision::et_on> small_type1;
18       typedef boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<100>, boost::multiprecision::et_off> big_type2;
19       typedef boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<50>, boost::multiprecision::et_off> small_type2;
20 
21       test<big_type1, small_type1>();
22       test<big_type2, small_type2>();
23       test<big_type1, small_type2>();
24       test<big_type2, small_type1>();
25    }
26    catch(const std::exception& e)
27    {
28       std::cout << "Failed with unexpected exception: " << e.what() << std::endl;
29       return 1;
30    }
31    return boost::report_errors();
32 }
33 
34