1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
foo(int i,int b)4 int foo (int i, int b)
5 {
6 int j = 1;
7 if (b)
8 j = i;
9 return j - i;
10 }
11
12 /* { dg-final { scan-tree-dump "Eliminated: 1" "pre" } } */
13 /* { dg-final { cleanup-tree-dump "pre" } } */
14