rust/src/test/run-pass/unwind-box.rs

14 lines
195 B
Rust
Raw Normal View History

// xfail-win32
use std;
import task;
2012-01-04 23:14:53 -06:00
fn f() {
let a = @0;
fail;
}
fn main() {
2012-03-12 17:52:30 -05:00
let builder = task::task_builder();
2012-02-18 18:34:42 -06:00
task::unsupervise(builder);
task::run(builder) {|| f(); }
}