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