2011-10-20 18:00:09 -05:00
|
|
|
// xfail-win32 leaks
|
2011-09-16 11:30:20 -05:00
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import task;
|
|
|
|
import comm;
|
|
|
|
import uint;
|
2011-09-16 11:30:20 -05:00
|
|
|
|
2012-01-04 23:14:53 -06:00
|
|
|
fn die() {
|
2011-09-16 11:30:20 -05:00
|
|
|
fail;
|
|
|
|
}
|
|
|
|
|
2012-01-04 23:14:53 -06:00
|
|
|
fn iloop() {
|
2011-09-16 11:30:20 -05:00
|
|
|
task::unsupervise();
|
2012-01-04 23:14:53 -06:00
|
|
|
task::spawn {|| die(); };
|
2011-09-16 11:30:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2011-10-21 06:14:28 -05:00
|
|
|
uint::range(0u, 100u) {|_i|
|
2012-01-04 23:14:53 -06:00
|
|
|
task::spawn {|| iloop(); };
|
2011-10-21 07:12:12 -05:00
|
|
|
}
|
2011-09-16 11:30:20 -05:00
|
|
|
}
|