OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dce-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dce2" } */
3
4 int t() __attribute__ ((const));
5 q()
6 {
7   int i = t();
8   if (!i)
9     i = t();
10 }
11 /* There should be no IF conditionals.  */
12 /* { dg-final { scan-tree-dump-times "if " 0 "dce2"} } */
13 /* { dg-final { cleanup-tree-dump "dce2" } } */