Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
1b96ee6f6268af4e6eb3b47ab19313c497591ee2
/
.
/
memcheck
/
tests
/
malloc_usable.c
blob: 670bc98c0f1c43d1708102ba7aadd24397a9ff24 [
file
] [
log
] [
blame
]
#include
<assert.h>
#include
<malloc.h>
#include
<stdlib.h>
#include
<stdio.h>
int
main
(
void
)
{
// Since our allocations are in multiples of 8, 99 will round up to 104.
int
*
x
=
malloc
(
99
);
assert
(
104
==
malloc_usable_size
(
x
));
return
0
;
}