android_mt6572_jiabo/external/valgrind/massif/tests/insig.c
2025-09-05 16:56:03 +08:00

34 lines
667 B
C

#include <stdlib.h>
// In this test, the size of the insignificant nodes is greater than the
// size of two of the significant nodes. This is quite common in big
// programs, but not so common in small tests, so we test for it here.
int main(void)
{
malloc(16000); // all sizes are divisible by 16 -- no slop
malloc(240);
malloc(192);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
malloc(16);
return 0;
}