aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-22.c
blob: 3504d1041e9f67ced6999a0588a86554dbaa6738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre1" } */

int i;
int foo (void)
{
  int j;
  i = j;
  return i;
}

/* We should eliminate the redundant load of i.  */

/* { dg-final { scan-tree-dump-not "= i;" "fre1" } } */
/* { dg-final { cleanup-tree-dump "fre1" } } */