1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-optimized -fno-inline --param ipa-cp-eval-threshold=100" } */
3 /* { dg-add-options bind_pic_locally } */
4 
5 int
very_long_function(int a)6 very_long_function(int a)
7 {
8   if (a > 0)
9     return 2 * a + very_long_function (a)/4;
10   else
11     return 2 * -a + very_long_function (a)/4;
12 }
13 
14 int
blah()15 blah ()
16 {
17   very_long_function (1);
18 }
19 /* One appearance for dump, one self recursive call and one call from main.  */
20 /* { dg-final { scan-tree-dump-times "very_long_function.constprop \\(\\)" 3 "optimized"} } */
21