OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-cse-1.c
1 /* { dg-do compile } */ 
2 /* { dg-options "-O2 -fdump-tree-dom1-details" } */
3 int t(int a) __attribute__ ((const));
4 void q (void);
5 void
6 threading(int a,int b)
7 {
8         if (t(a))
9         {
10           if (t(a))
11             q();
12         }
13 }
14 /* We should thread the jump twice and eliminate it.  */
15 /* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "dom1"} } */
16 /* { dg-final { cleanup-tree-dump "dom1" } } */