aboutsummaryrefslogtreecommitdiff
path: root/tests/un/allocs.c
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
committerbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
commit8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (patch)
tree205413ed09ac001e37267889d429a363c37008f2 /tests/un/allocs.c
parentc96c355b360f18f982459e1a866dcbf5864efdb8 (diff)
downloadungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.tar.gz
ungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.zip
Ungrateful changes, added more stuffHEADmain
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);
+ }
}