aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/loop-4.c
blob: c83fd1c0fc528ffa74356c2d0b9e59797abfdca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* PR optimization/11841 */
/* Originator: Andrey Panov <panov@canopus.iacp.dvo.ru> */
/* Reduced testcase by Volker Reichelt <reichelt@igpm.rwth-aachen.de> */

/* Verify that the (old) loop unroller doesn't wrongly mark a pseudo
   referenced in a note as local.  */

/* { dg-do run } */
/* { dg-options "-O2 -funroll-loops" } */

int *a;

int main()
{
  double d[6];
  int i, j;

  for (i=0; i<4; ++i)
    for (j=0; j<3; ++j)
      d[i+j] = 0;

  a = &i;

  return 0;
}