1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
3 
4 int x;
5 void
foo(void)6 foo (void)
7 {
8   if (x == 0)
9     x = 0;
10 }
11 void
bar(int i)12 bar (int i)
13 {
14   if (x == i)
15     x = i;
16 }
17 
18 /* { dg-final { scan-tree-dump-not "x =" "optimized" } } */
19