From 86c880283730b31e12f31ff3daf55296c9a6ad17 Mon Sep 17 00:00:00 2001 From: Wataru Tokuno Date: Tue, 15 Jun 2021 15:19:45 +0900 Subject: [PATCH] Add test of with small alignment --- test/test-api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test-api.c b/test/test-api.c index e5827a93..170dc67b 100644 --- a/test/test-api.c +++ b/test/test-api.c @@ -161,6 +161,9 @@ int main() { CHECK_BODY("malloc-aligned-at2", { void* p = mi_malloc_aligned_at(50,32,8); result = (p != NULL && ((uintptr_t)(p) + 8) % 32 == 0); mi_free(p); }); + CHECK_BODY("realloc-aligned-at", { + void* p = mi_realloc_aligned_at(NULL,50,2,1); result = (p != NULL && ((uintptr_t)(p) + 1) % 2 == 0); mi_free(p); + }); CHECK_BODY("memalign1", { void* p; bool ok = true;