summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/sccp-1.c
blob: 73c10797ae2d390690174c1f5462066b44a0b2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

int main(int argc, char* argv[])
{
  int i, a = 0;
  for (i=0; i < 10; i++)
    a += i + 0xff00ff;
  return a;
}

/* There should be no loop left.  */

/* { dg-final { scan-tree-dump-times "goto" 0 "optimized" } } */