mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
I guess it's not very widely used :) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4439
13 lines
253 B
C
13 lines
253 B
C
#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;
|
|
}
|