summaryrefslogtreecommitdiffstats
path: root/linker/tests/linker_allocator_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linker/tests/linker_allocator_test.cpp')
-rw-r--r--linker/tests/linker_allocator_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/linker/tests/linker_allocator_test.cpp b/linker/tests/linker_allocator_test.cpp
index e3a91c5..0ed8252 100644
--- a/linker/tests/linker_allocator_test.cpp
+++ b/linker/tests/linker_allocator_test.cpp
@@ -96,6 +96,9 @@ TEST(linker_allocator, test_larger) {
ASSERT_TRUE(allocator.alloc() != nullptr);
}
+ test_struct_larger* ptr_to_free = allocator.alloc();
+ ASSERT_TRUE(ptr_to_free != nullptr);
+ allocator.free(ptr1);
}
static void protect_all() {