2011-10-20 18:00:09 -05:00
|
|
|
// xfail-win32 leaks
|
2011-09-16 11:30:20 -05:00
|
|
|
use std;
|
|
|
|
|
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() {
|
2012-06-30 18:19:07 -05:00
|
|
|
task::spawn(|| die() );
|
2011-09-16 11:30:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-30 18:19:07 -05:00
|
|
|
for uint::range(0u, 100u) |_i| {
|
2012-07-23 14:53:18 -05:00
|
|
|
task::spawn_unlinked(|| iloop() );
|
2011-10-21 07:12:12 -05:00
|
|
|
}
|
2012-07-23 14:53:18 -05:00
|
|
|
}
|