diff --git a/test/expand_bwd_test_allocator.hpp b/test/expand_bwd_test_allocator.hpp index 39b256c..7bcbf4e 100644 --- a/test/expand_bwd_test_allocator.hpp +++ b/test/expand_bwd_test_allocator.hpp @@ -137,6 +137,7 @@ class expand_bwd_test_allocator if(m_allocations == 0){ if((m_offset + limit_size) > m_size){ assert(0); + throw_bad_alloc(); } ++m_allocations; reuse = 0;