aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-dse-1.c
blob: 504e4bc038d87a41a9513473cbe38172cfb7c8e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

int x;
void
foo (void)
{
  if (x == 0)
    x = 0;
}
void
bar (int i)
{
  if (x == i)
    x = i;
}

/* { dg-final { scan-tree-dump-not "x =" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */