summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/dse-points-to.c
blob: 8003556474d0288f592f0d32b55bf92d7937cd9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre -fno-tree-vrp" } */
/* { dg-additional-options "-fdump-tree-dse1-details" } */

int
f ()
{
  int a;
  int *p = &a;
  *p = 1;
  a = 2;
  return a;
}

/* { dg-final { scan-tree-dump-times "Deleted dead store.*p_1" 1 "dse1"} } */