gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-4.c
blob39fc85e69262d92a50cf49b0acaaef050333c413
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
4 foo( int *a)
6 *a = 5;
7 *a = 3;
13 /* We should eliminate the first assignment to *p, but not the second. */
14 /* { dg-final { scan-tree-dump-times "= 5" 0 "dse1"} } */
15 /* { dg-final { scan-tree-dump-times "= 3" 1 "dse1"} } */
17 /* { dg-final { cleanup-tree-dump "dse1" } } */