aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/sccp-1.c
blob: 633a37a35fe31c82cbbe3eaaaf75f1e580f0987c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */