2011-10-20 18:00:09 -05:00
|
|
|
// xfail-win32 leaks
|
2011-09-16 11:30:20 -05:00
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
import std::comm;
|
|
|
|
import std::uint;
|
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn die(&&_i: ()) {
|
2011-09-16 11:30:20 -05:00
|
|
|
fail;
|
|
|
|
}
|
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn iloop(&&_i: ()) {
|
2011-09-16 11:30:20 -05:00
|
|
|
task::unsupervise();
|
2011-10-13 23:23:07 -05:00
|
|
|
task::spawn((), die);
|
2011-09-16 11:30:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
for each i in uint::range(0u, 100u) {
|
2011-10-13 23:23:07 -05:00
|
|
|
task::spawn((), iloop);
|
2011-09-16 11:30:20 -05:00
|
|
|
}
|
|
|
|
}
|