summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr24225.c
blob: af33710cf1d4294602ee388afde30f41ed462f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This was an ICE caused by the compiler-generated stack save/restore
   statements around s[b].  */
/* { dg-do compile} */
/* { dg-options "-O1 -fprofile-arcs" } */

int
foo (int a, int b)
{
  if (a)
    return 1;
  {
    int s [b];
    return 0;
  }
}

/* { dg-final { cleanup-coverage-files } } */