aboutsummaryrefslogtreecommitdiff
path: root/tests/un/allocs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/un/allocs.c')
-rw-r--r--tests/un/allocs.c11
1 files changed, 11 insertions, 0 deletions
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);
+ }
}