tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / test / clib / posix_memalign.c
blob8b5010d523458d16c8e06913ce93cffcd72934a3
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "test.h"
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <exec/types.h>
11 #define BLOCK_SIZE (64 * 4096)
12 #define BLOCK_MASK ~(BLOCK_SIZE - 1)
14 int main()
16 void * address = NULL;
18 posix_memalign(&address, BLOCK_SIZE, BLOCK_SIZE);
20 TEST(((IPTR)address == ((IPTR)address & (IPTR)BLOCK_MASK)));
22 free(address);
24 return OK;
27 void cleanup()