summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr58742-1.c
blob: 54a0d3f91799fdf809ee5f12e2d32bd1ac0f1a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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" } } */