about summary refs log tree commit diff
path: root/src/test/run-pass/spawn.rs
blob: db695a1dd8b7aaf70d1bada3c993cbdfe849cb1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// xfail-stage0
// -*- rust -*-

use std;

fn main() {
    auto t = spawn child(10);
    std::task::join(t)
}

fn child(int i) {
    log_err i;
    assert(i == 10);
}

// Local Variables:
// mode: rust;
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: