blob: b80a8dc3bba7ad12ae274f08ac39b7bb3187b2f2 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-fre-stats" } */
int main(int argc, char **argv)
{
int *p;
int result;
*p = 2;
if (argc)
*p = 2;
result = *p;
return result;
}
/* We should eliminate result = *p by saying it has the value 2. */
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */
/* { dg-final { cleanup-tree-dump "fre" } } */