rust/src/test/run-pass/morestack2.rs
2012-01-11 13:57:11 -08:00

14 lines
194 B
Rust

fn getbig(i: int) -> int {
let m = if i >= 0 {
let j = getbig(i - 1);
let k = getbig(j - 1);
k
} else {
0
};
m
}
fn main() {
getbig(10000);
}