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

14 lines
198 B
Rust
Raw Normal View History

// xfail-win32
use std;
import task;
2012-01-04 21:14:53 -08:00
fn f() {
let a = @0;
fail;
}
fn main() {
2012-02-18 16:34:42 -08:00
let builder = task::mk_task_builder();
task::unsupervise(builder);
task::run(builder) {|| f(); }
}