summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr19910.c
blob: 1ee0d213b8aaada81751229fbc246d84f9e3abc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Contributed by Volker Reichelt <reichelt@gcc.gnu.org>.  */

/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-linear" } */

int a[3];

void foo()
{
  int i, j;

  for (i = 1; i >= 0; --i)
    for (j = i; j >= 0; --j)
      a[i+j] = 0;
}