1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre -fno-tree-vrp" } */
3 /* { dg-additional-options "-fdump-tree-dse1-details" } */
4 
5 int
f()6 f ()
7 {
8   int a;
9   int *p = &a;
10   *p = 1;
11   a = 2;
12   return a;
13 }
14 
15 /* { dg-final { scan-tree-dump-times "Deleted dead store.*p_1" 1 "dse1"} } */
16