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

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