diff options
author | bonmas14 <bonmas14@gmail.com> | 2025-08-23 01:28:41 +0300 |
---|---|---|
committer | bonmas14 <bonmas14@gmail.com> | 2025-08-23 01:28:41 +0300 |
commit | 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (patch) | |
tree | 205413ed09ac001e37267889d429a363c37008f2 /tests/un/allocs.c | |
parent | c96c355b360f18f982459e1a866dcbf5864efdb8 (diff) | |
download | ungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.tar.gz ungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.zip |
Diffstat (limited to 'tests/un/allocs.c')
-rw-r--r-- | tests/un/allocs.c | 11 |
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); + } } |