diff options
Diffstat (limited to 'pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp')
-rw-r--r-- | pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp index 5eb242e..03f2b3c 100644 --- a/pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp +++ b/pstl/test/std/algorithms/alg.modifying.operations/rotate.pass.cpp @@ -167,6 +167,9 @@ main() { test<int32_t>(); test<wrapper<float64_t>>(); + test<MemoryChecker>(); + EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from rotate: number of ctors calls < num of dtors calls"); + EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from rotate: number of ctors calls > num of dtors calls"); std::cout << done() << std::endl; return 0; |