blob: c4158f73a2aa8fe40000ed3b583910b085b25a6c [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre1-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" "fre1" } } */