Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/forwprop-31.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-tree-ccp -fdump-tree-forwprop1" } */
3
4 int foo (int x)
5 {
6 int y = 0;
7 int z = x + 1;
8 int w = z + y; /* becomes z */
9 return w - z; /* becomes 0 */
10 }
11
12 /* { dg-final { scan-tree-dump-times " = " 0 "forwprop1" } } */
13 /* { dg-final { scan-tree-dump "return 0;" "forwprop1" } } */