Deep recursive function for extreme nesting
| 125 | |
| 126 | // Deep recursive function for extreme nesting |
| 127 | int deep_recursive_func(int depth, int max_depth) { |
| 128 | if (depth >= max_depth) { |
| 129 | CTRACK_NAME("recursive_base"); |
| 130 | return depth; |
| 131 | } |
| 132 | |
| 133 | CTRACK_NAME("recursive_call"); |
| 134 | return deep_recursive_func(depth + 1, max_depth); |
| 135 | } |
| 136 | |
| 137 | TEST_CASE("Extremely nested scenarios") { |
| 138 | test_helpers::clear_ctrack(); |