rust/src/test/run-fail/morestack1.rs
Brian Anderson 06f4cb43f6 rt: Delete the entire stack chain on task destruction
Unwinding through __morestack on 64-bit Linux seems to be no big deal, and
all we have to do is free the stacks to make unwinding work with split stacks.
2011-11-29 22:22:49 -08:00

14 lines
No EOL
208 B
Rust

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