summary refs log tree commit diff
path: root/src/test/run-pass/join.rs
blob: ef4073406b4babaffb8128c2ee107649cf071f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// -*- rust -*-

use std;

import task::*;

fn main() {
    let other = spawn_joinable {|| child(); };
    #error("1");
    yield();
    join(other);
    #error("3");
}

fn child() { #error("2"); }