rust/src/test/run-pass/join.rs

19 lines
196 B
Rust
Raw Normal View History

2011-06-13 20:19:08 -05:00
// xfail-stage0
// -*- rust -*-
use std;
import std::task::*;
fn main() {
auto other = spawn child();
log_err "1";
yield();
join(other);
log_err "3";
}
fn child() {
log_err "2";
}