OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-4.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
3
4 foo( int *a)
5 {
6   *a = 5;
7   *a = 3;
8 }
9
10
11
12
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"} } */
16
17 /* { dg-final { cleanup-tree-dump "dse1" } } */
18
19