aboutsummaryrefslogtreecommitdiffstats
path: root/src/malloc.cc
blob: 22b4cdb3a055dc1cc181f8e4e7b884f5612235ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * Copying and distribution of this file, with or without modification,
 * are permitted in any medium without royalty provided the copyright
 * notice and this notice are preserved.  This file is offered as-is,
 * without any warranty.
 */
#include <cstdlib>

int main(void)
{
  char* a;
  size_t i;
  
  for (i = 0; i < 40000000UL; i++)
    a = (char*)malloc(16);
  
  return 0;
}