rust/src/test/run-pass/lots-a-fail.rs
2012-01-06 22:40:31 -08:00

20 lines
252 B
Rust

// xfail-win32 leaks
use std;
import task;
import comm;
import uint;
fn die() {
fail;
}
fn iloop() {
task::unsupervise();
task::spawn {|| die(); };
}
fn main() {
uint::range(0u, 100u) {|_i|
task::spawn {|| iloop(); };
}
}