2 /* Demonstrate Memcheck correctly handling a 64M array on the stack.
3 Requires --max-stackframe=67108884 or above. And since it
4 generates a very large stack, --main-stacksize=67200000
5 (approximately) is also required. */
11 #define N_INTS ((N_MBYTES * 1048576) / sizeof(int))
18 fprintf(stderr
, "lsframe1: start\n");
19 for (i
= 0; i
< N_INTS
; i
++)
22 for (i
= 0; i
< N_INTS
; i
++)
24 fprintf(stderr
, "lsframe1: done, result is %d\n", sum
);