summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/cunroll-10.c
blob: f392fbeb6e6bf11ed9bfbb4be647bbeb5f5073b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O3 -Warray-bounds -fdump-tree-cunroll-details" } */
int a[3];
int b[4];
int
foo (int n)
{
  int i;
  for (i=0;i<n;i++)
    if (b[i]==2)
     a[i]++;
}
/* { dg-final { scan-tree-dump-times "Forced statement unreachable" 2 "cunroll" } } */