While it is still technically possible to test stage 0, it is not part of any of the main testing rules and maintaining xfail-stage0 is a chore. Nobody should worry about how tests fare in stage0.
19 lines
230 B
Rust
19 lines
230 B
Rust
// xfail-stage1
|
|
// xfail-stage2
|
|
// xfail-stage3
|
|
|
|
// -*- rust -*-
|
|
|
|
fn main() {
|
|
let int i = 10;
|
|
while (i > 0) {
|
|
spawn thread "child" child(i);
|
|
i = i - 1;
|
|
}
|
|
log "main thread exiting";
|
|
}
|
|
|
|
fn child(int x) {
|
|
log x;
|
|
}
|
|
|