summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr42729.c
blob: a9f1e2dee3ff5f1f9eae157e89a37fdca49a9d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-options "-O1 -fgraphite-identity -fcompare-debug" } */

int A[10];
int *foo ()
{
  int *p1, *p2, i;
  for (i = 0; i < 10; i++)
  {
    p1 = &A[i];
    *p1 = 0;
  }
  p2 = p1;
  return p2;
}