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