2011-06-15 20:16:17 -05:00
|
|
|
// xfail-stage0
|
|
|
|
// -*- rust -*-
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-15 20:16:17 -05:00
|
|
|
use std;
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-15 20:16:17 -05:00
|
|
|
fn main() {
|
|
|
|
auto t = spawn child(10);
|
2011-07-14 21:39:53 -05:00
|
|
|
std::task::join(t);
|
2011-06-15 20:16:17 -05:00
|
|
|
}
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-06-15 20:16:17 -05:00
|
|
|
fn child(int i) {
|
|
|
|
log_err i;
|
|
|
|
assert(i == 10);
|
|
|
|
}
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-05-26 20:00:33 -05:00
|
|
|
// Local Variables:
|
|
|
|
// mode: rust;
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
|
|
|
// c-basic-offset: 4
|
|
|
|
// buffer-file-coding-system: utf-8-unix
|
2011-06-15 14:01:19 -05:00
|
|
|
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2011-05-26 20:00:33 -05:00
|
|
|
// End:
|