2011-03-25 12:19:20 -07:00
|
|
|
// xfail-stage0
|
2011-05-03 18:13:51 -07:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2011-07-20 19:37:09 -07:00
|
|
|
// xfail-stage3
|
2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn x(s: str, n: int) { log s; log n; }
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
spawn x("hello from first spawned fn", 65);
|
|
|
|
spawn x("hello from second spawned fn", 66);
|
|
|
|
spawn x("hello from third spawned fn", 67);
|
|
|
|
let i: int = 30;
|
|
|
|
while i > 0 { i = i - 1; log "parent sleeping"; yield; }
|
|
|
|
}
|