diff options
Diffstat (limited to 'enmalloc.c')
-rw-r--r-- | enmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,7 @@ main(void) assert((info = get_allocinfo(ptr))); assert(info->size == 5); assert(!info->zeroed); + assert(!((uintptr_t)ptr % (uintptr_t)(info->alignment))); } free(ptr); @@ -35,6 +36,7 @@ main(void) assert((info = get_allocinfo(ptr))); assert(info->size == 4); assert(!info->zeroed); + assert(!((uintptr_t)ptr % (uintptr_t)(info->alignment))); } free(ptr); |