aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloca.cc
blob: a46c69bfef54c767079e172971735911c3ed7656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * 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>
#include <alloca.h>

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