add test for #587

This commit is contained in:
Daan 2022-11-25 15:44:24 -08:00
parent 78af17e3b3
commit 81b261e657
1 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,12 @@ int main(void) {
}
result = ok;
}
CHECK_BODY("malloc_aligned11") {
mi_heap_t* heap = mi_heap_new();
void* p = mi_heap_malloc_aligned(heap, 33554426, 8);
result = mi_heap_contains_block(heap, p);
mi_heap_destroy(heap);
}
CHECK_BODY("malloc-aligned-at1") {
void* p = mi_malloc_aligned_at(48,32,0); result = (p != NULL && ((uintptr_t)(p) + 0) % 32 == 0); mi_free(p);
};