rust/src/test/run-pass/lots-a-fail.rs

17 lines
206 B
Rust

// xfail-win32 leaks
extern mod std;
fn die() {
fail;
}
fn iloop() {
task::spawn(|| die() );
}
fn main() {
for uint::range(0u, 100u) |_i| {
task::spawn_unlinked(|| iloop() );
}
}