Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / test / test_hash.cpp
index b521c1a..2572d1b 100644 (file)
@@ -6,7 +6,7 @@
 // or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #ifdef _MSC_VER
-#  define _SCL_SECURE_NO_WARNINGS
+#define _SCL_SECURE_NO_WARNINGS
 #endif
 
 #include <boost/multiprecision/cpp_int.hpp>
 template <class T>
 void test()
 {
-   T val = 23;
-   std::size_t t1 = boost::hash<T>()(val);
+   T           val = 23;
+   std::size_t t1  = boost::hash<T>()(val);
    BOOST_CHECK(t1);
 
 #ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
    std::size_t t2 = std::hash<T>()(val);
    BOOST_CHECK_EQUAL(t1, t2);
 #endif
-   val = -23;
+   val            = -23;
    std::size_t t3 = boost::hash<T>()(val);
    BOOST_CHECK_NE(t1, t3);
 #ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
@@ -57,7 +57,6 @@ void test()
 #endif
 }
 
-
 int main()
 {
    test<boost::multiprecision::cpp_int>();
@@ -97,4 +96,3 @@ int main()
 
    return boost::report_errors();
 }
-