summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42917.c
blob: d8db32ea2da1c318294aba2ec65d1beeefa44246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-loop-linear -fcompare-debug -fdump-tree-ltrans" } */

extern int A[];

void
foo ()
{
  int i, j;
  for (i = 0; i < 4; i++)
    for (j = 255; j >= 0; j--)
      A[j] = 0;
}

/* { dg-final { scan-tree-dump "Successfully transformed loop" "ltrans" } } */
/* { dg-final { cleanup-tree-dump "ltrans" } } */