aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/o3deep_over.zc
blob: 45816f602998cd8bd4b74ecf7d6b495eae7416d7 (plain) (blame)
1
2
3
// 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() { put_n(deep(100000)); put_c(10); return 0; }