aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/o3deep_over.zc
blob: 226543e162349774c8a2f01d351e8ab3289e0b56 (plain) (blame)
1
2
3
4
5
6
namespace;
include rt;

// recursion can grow beyond the original operand and frame reservations
o3 int deep(int n) { if (n == 0) return 0; return 1 + deep(n - 1); }
fn main() { rt.put_n(deep(100000)); rt.put_c(10); return 0; }