2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-31 19:44:54 -05:00
|
|
|
use std;
|
|
|
|
|
|
|
|
import std::task::*;
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
fn main() {
|
|
|
|
auto other = spawn child();
|
2011-05-31 19:44:54 -05:00
|
|
|
log_err "1";
|
|
|
|
yield();
|
|
|
|
log_err "2";
|
|
|
|
yield();
|
|
|
|
log_err "3";
|
|
|
|
join(other);
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn child() {
|
2011-05-31 19:44:54 -05:00
|
|
|
log_err "4";
|
|
|
|
yield();
|
|
|
|
log_err "5";
|
|
|
|
yield();
|
|
|
|
log_err "6";
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|