rust/src/test/run-pass/morestack5.rs
2012-07-01 19:19:32 -07:00

18 lines
280 B
Rust

// This test will call __morestack with various minimum stack sizes
use std;
import task;
fn getbig(&&i: int) {
if i != 0 {
getbig(i - 1);
}
}
fn main() {
let mut sz = 400u;
while sz < 500u {
task::try(|| getbig(200) );
sz += 1u;
}
}