summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr47086.c
blob: 71743fe4fe5cdf9c6a4d4ac31cdbb02a8a82a223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O -fexceptions -fnon-call-exceptions -ftrapv" } */

void
foo ()
{
  int n = 0;
  while (1)
    {
      int i[n % 1];
      n++;
    }
}