blob: 8a5077bbde06e87bf4ebf03fe1a76107454a560b [file] [log] [blame] [edit]
#include <stdlib.h>
#include <assert.h>
#include <stdint.h>
int main()
{
for(int times = 0; times < 16; ++times)
for(int alignment = sizeof(void*); alignment <= 64; alignment *= 2)
assert((uintptr_t)aligned_alloc(alignment, 19) % alignment == 0);
return 0;
}