OSDN Git Service

* g++.dg/opt/nothrow1.C: Use cleanup-tree-dump.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-sink-2.c
1 /* { dg-do compile } */ 
2 /* { dg-options "-O2 -fdump-tree-sink-stats" } */
3 int
4 bar (int a, int b, int c)
5 {
6   int y = a * b;
7   if (c)
8     y = 12;
9   return y;
10 }
11 /* We should sink the x = a * b calculation into the else branch  */
12 /* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */
13 /* { dg-final { cleanup-tree-dump "sink" } } */