aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-1.rs
blob: 8adab6e9f0f655e2d59ef03890e9a9f06dbc7978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// xfail-stage0
// xfail-stage1
// xfail-stage2
fn main() -> () {
   test00(); 
}

fn start() {
    log "Started / Finished task.";
}

fn test00() {
    let task t = spawn thread start();
    join t;
    log "Completing.";
}