posixc.library: refactor __exec_do to make clear separate between regular code path...
[AROS.git] / test / clib / posix_memalign.c
blobc02ffed732c6ac709c94e04ac63ca5e0717363d2
1 #include "test.h"
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <exec/types.h>
6 #define BLOCK_SIZE (64 * 4096)
7 #define BLOCK_MASK ~(BLOCK_SIZE - 1)
9 int main()
11 void * address = NULL;
13 posix_memalign(&address, BLOCK_SIZE, BLOCK_SIZE);
15 TEST(((IPTR)address == ((IPTR)address & (IPTR)BLOCK_MASK)));
17 free(address);
19 return OK;
22 void cleanup()