summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/autopar/pr46799.c
blob: 575e12c55599b66ce73e7ae0fe4c6553c381264c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR debug/46799 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-parallelize-loops=2 -fno-tree-dce -ftree-pre -fcompare-debug" } */

int
foo (int i, int *a)
{
  int e;
  for (; i; i++)
    e = *a;
  return e;
}