1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-cddce1" } */ int * fx (int *b, int *e) { __SIZE_TYPE__ p = e - b; /* The first forwprop pass should optimize this to return e; */ return b + p; } /* { dg-final { scan-tree-dump "return e" "cddce1" } } */ /* { dg-final { cleanup-tree-dump "cddce1" } } */