summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr68286.c
blob: d0392e85a65910d917dc28bc48e1e430c8ba00ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR target/68286 */
/* { dg-do compile } */
/* { dg-options "-O3" } */

int a, b, c;
int fn1 ()
{
  int d[] = {0};
  for (; c; c++)
    {
      float e = c;
      if (e)
        d[0]++;
    }
  b = d[0];
  return a;
}