No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-prof / update-tailcall.c
blob32ad34857b56d0a92536c71a5cd7c16329c2b0ee
1 /* { dg-options "-O2 -fdump-tree-tailcall -fdump-tree-optimized" } */
2 __attribute__ ((noinline))
3 int factorial(int x)
5 if (x == 1)
6 return 1;
7 else
8 return x*factorial(--x);
10 int gbl;
11 int
12 main()
14 gbl = factorial(100);
15 return 0;
17 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "tailc"} } */
18 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
19 /* { dg-final-use { cleanup-tree-dump "tailc" } } */
20 /* { dg-final-use { cleanup-tree-dump "optimized" } } */