summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46252.c
blob: 70bf21d6c079b11104209ab04572a274bc04ed1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR debug/46252 */
/* { dg-do compile } */
/* { dg-options "-O -frerun-cse-after-loop -fno-tree-loop-optimize -funroll-loops -fcompare-debug" } */

void
foo (float *f)
{
  int i;
  for (i = 0; i < 4; i++)
    f[i] = i;
  bar ();
  for (i = 0; i < 4; i++)
    if (f[i] != i)
      __builtin_abort ();
}