rust/src/test/run-pass/yield1.rs
2011-08-15 09:26:52 -07:00

13 lines
198 B
Rust

// -*- rust -*-
use std;
import std::task;
import std::task::*;
fn main() {
let other = task::_spawn(bind child());
log_err "1"; yield();
join_id(other);
}
fn child() { log_err "2"; }