1/* { dg-do compile } */
2/* { dg-options "-O -fstack-check" } */
3
4void foo (int n)
5{
6  volatile char arr[64 * 1024];
7
8  arr[n] = 1;
9}
10