No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / ssa-sink-4.c
blobc49c4f8d00647963fd2301c65d4fe4244855fa0f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sink-stats" } */
3 extern int foo (int *, int *);
4 extern int foo2 (int);
5 int
6 main (int argc)
8 int a, b, c;
9 b = argc + 1;
10 c = argc + 2;
11 a = b + c;
12 if (argc)
14 foo (&b, &c);
15 a = b + c;
17 foo2 (a);
19 /* We should sink the first a = b + c calculation into the else branch */
20 /* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */
21 /* { dg-final { cleanup-tree-dump "sink" } } */