]> granicus.if.org Git - gc/commit
Fix test_cpp for MANUAL_VDB
authorIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 08:41:51 +0000 (11:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 08:41:51 +0000 (11:41 +0300)
commit08a380c3a7fef12b5e58d83237de9858f830594b
tree9d2230ca5c0d9c2f5e235c9164c7430028a4c41b
parent94c71cae2230f7acd4b9e8fd404ff7e5654640b3
Fix test_cpp for MANUAL_VDB

* tests/test_cpp.cc (C(C&), C::operator=): Call new if and only if
level>0.
* tests/test_cpp.cc (C(C&), C::operator=, C(int), main): Call
GC_end_stubborn_change for the result of new operator.
* tests/test_cpp.cc (main): Call GC_end_stubborn_change after update
of *xptr.
tests/test_cpp.cc