]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/multiprecision/test/test_cpp_int.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_cpp_int.cpp
index b809e3794b3fe128ddbf4c1898ad483588dc53f8..ebc318f5c242d0fbd3acba7ac21f12d1418b6116 100644 (file)
@@ -528,6 +528,13 @@ struct tester
          BOOST_CHECK_EQUAL(a.str(), s1.str());
          BOOST_CHECK_EQUAL(b.str(), t.str());
       }
+      a = -1;
+      ++a;
+      BOOST_CHECK_EQUAL(a, 0);
+      ++--a;
+      BOOST_CHECK_EQUAL(a, 0);
+      --++a;
+      BOOST_CHECK_EQUAL(a, 0);
    }
 
    void test()
@@ -636,7 +643,7 @@ int main()
    t3.test();
 #endif
 #ifdef TEST4
-   tester<number<cpp_int_backend<0, 2048, signed_magnitude, unchecked, std::allocator<void> > > > t4;
+   tester<number<cpp_int_backend<0, 2048, signed_magnitude, unchecked, std::allocator<char> > > > t4;
    t4.test();
 #endif
 #ifdef TEST5