diff options
-rw-r--r-- | gold/testsuite/icf_test.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gold/testsuite/icf_test.cc b/gold/testsuite/icf_test.cc index 7abd2ae..d7de701 100644 --- a/gold/testsuite/icf_test.cc +++ b/gold/testsuite/icf_test.cc @@ -29,19 +29,21 @@ int common() return 1; } -int kept_func() +int kept_func(int i) { common(); // Recursive call. - kept_func(); + if (i) + kept_func(i - 1); return 1; } -int folded_func() +int folded_func(int i) { common(); // Recursive call. - folded_func(); + if (i) + folded_func(i - 1); return 1; } |