rust/src/test/run-pass/yield1.rs
2011-10-20 20:34:04 -07:00

14 lines
212 B
Rust

// -*- rust -*-
use std;
import std::task;
import std::task::*;
fn main() {
let other = task::spawn_joinable((), child);
log_err "1";
yield();
join(other);
}
fn child(&&_i: ()) { log_err "2"; }