summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c
blob: fc33d74e9ffeaf4a44592e4cc7aae374347ecf11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre-details" } */

int
foo (int *p)
{
  *p = 0;
  return *p;
}

/* The store to *p should be propagated to the load statement.  */
/* { dg-final { scan-tree-dump "Replaced \\\*p_.\\\(D\\\) with 0" "fre" } } */
/* { dg-final { cleanup-tree-dump "fre" } } */