20 lines
252 B
Rust
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(); };
|
|
}
|
|
} |