diff options
Diffstat (limited to 'test/unittest/allocatorstest.cpp')
-rw-r--r-- | test/unittest/allocatorstest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unittest/allocatorstest.cpp b/test/unittest/allocatorstest.cpp index 3f337242..7b4deeda 100644 --- a/test/unittest/allocatorstest.cpp +++ b/test/unittest/allocatorstest.cpp @@ -42,6 +42,9 @@ void TestAllocator(Allocator& a) { EXPECT_EQ(i, r[i]); Allocator::Free(r); + + // Realloc to zero size + EXPECT_TRUE(a.Realloc(a.Malloc(1), 1, 0) == 0); } TEST(Allocator, CrtAllocator) { |