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.
14 lines
No EOL
208 B
Rust
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);
|
|
} |