From 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sat, 23 Aug 2025 01:28:41 +0300 Subject: Ungrateful changes, added more stuff --- tests/un/allocs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/un/allocs.c') diff --git a/tests/un/allocs.c b/tests/un/allocs.c index 608d9f4..3348e70 100644 --- a/tests/un/allocs.c +++ b/tests/un/allocs.c @@ -36,4 +36,15 @@ int main(void) { un_memory_destroy(&arena); } + + { // wrapper + Allocator wrapper = un_allocator_create_wrapper(un_allocator_create_arena(size)); + + for (i = 0; i < 1000; i++) { + value = un_memory_alloc(8, wrapper); + *value = 0xAC; + } + + un_memory_destroy(&wrapper); + } } -- cgit v1.2.3-70-g09d2