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

20 lines
223 B
Rust

// xfail-win32
use std;
import task;
import comm;
class complainer {
let c: @int;
new(c: @int) { self.c = c; }
drop {}
}
fn f() {
let c <- complainer(@0);
fail;
}
fn main() {
task::spawn_unlinked(f);
}