diff options
Diffstat (limited to 'alloca.cc')
-rw-r--r-- | alloca.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/alloca.cc b/alloca.cc new file mode 100644 index 0000000..15dadcb --- /dev/null +++ b/alloca.cc @@ -0,0 +1,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; +} |