rust/src/test/run-fail/morestack1.rs

13 lines
176 B
Rust
Raw Normal View History

// xfail-test
// compile-flags:--stack-growth
fn getbig(i: int) {
if i != 0 {
getbig(i - 1);
} else {
fail;
}
}
fn main() {
getbig(10000000);
}