1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-ccp1" } */ 3 foo(int i)4 int foo (int i) 5 { 6 int j = i; 7 int k = 0; 8 int l = j + k; 9 int m = l - j; 10 return m; 11 } 12 13 /* { dg-final { scan-tree-dump "return 0;" "ccp1" } } */ 14