summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp')
-rw-r--r--src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp b/src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp
new file mode 100644
index 00000000..b5d22239
--- /dev/null
+++ b/src/boost/libs/multiprecision/test/test_arithmetic_mpfr.cpp
@@ -0,0 +1,24 @@
+///////////////////////////////////////////////////////////////
+// Copyright 2012 John Maddock. Distributed under the Boost
+// Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
+
+#ifdef _MSC_VER
+#define _SCL_SECURE_NO_WARNINGS
+#endif
+
+#include <boost/multiprecision/mpfr.hpp>
+#define TEST_MPFR
+#include "test_arithmetic.hpp"
+
+template <unsigned D>
+struct related_type<boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<D> > >
+{
+ typedef boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<D / 2> > type;
+};
+
+int main()
+{
+ test<boost::multiprecision::mpfr_float>();
+ return boost::report_errors();
+}