Enable sys_adjtimex() on arm-linux. Fixes #412408.
[valgrind.git] / memcheck / tests / malloc_usable.c
blob78ab8f138aa3a038f7f712d89a72ee1d8dc3ae65
1 #include <assert.h>
2 #include "tests/malloc.h"
3 #include <stdlib.h>
4 #include <stdio.h>
6 int main(void)
8 # if !defined(VGO_darwin) && !defined(VGO_solaris)
9 // Because Memcheck marks any slop as inaccessible, it doesn't round up
10 // sizes for malloc_usable_size().
11 int* x = malloc(99);
13 // XXX: would be better to have a HAVE_MALLOC_USABLE_SIZE variable here
14 assert(99 == malloc_usable_size(x));
15 assert( 0 == malloc_usable_size(NULL));
16 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
17 # endif
19 return 0;