Skip to content

Commit 5f183c6

Browse files
committed
---
yaml --- r: 4563 b: refs/heads/master c: 9742148 h: refs/heads/master i: 4561: d6c70b3 4559: e1aed3c v: v3
1 parent 14b23be commit 5f183c6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: d4a17caf1e6ee30a93edf6174ea5d41e3c2e3418
2+
refs/heads/master: 9742148e255abe4ed1e629c6e7af57d0c94fc0ed

trunk/src/test/run-pass/spawn-fn.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// xfail-stage1
2-
// xfail-stage2
3-
// xfail-stage3
41
// -*- rust -*-
52

3+
use std;
4+
import std::task::yield;
5+
66
fn x(s: str, n: int) { log s; log n; }
77

88
fn main() {
99
spawn x("hello from first spawned fn", 65);
1010
spawn x("hello from second spawned fn", 66);
1111
spawn x("hello from third spawned fn", 67);
1212
let i: int = 30;
13-
while i > 0 { i = i - 1; log "parent sleeping"; yield; }
13+
while i > 0 { i = i - 1; log "parent sleeping"; yield(); }
1414
}

0 commit comments

Comments
 (0)