mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Various minor changes to make these compile on AIX5. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6254
15 lines
283 B
C
15 lines
283 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);
|
|
# if !defined(_AIX)
|
|
assert(104 == malloc_usable_size(x));
|
|
# endif
|
|
return 0;
|
|
}
|