OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-22.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
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" } } */