This test case now parses
I've done a slapdash job of fixing up the syntax; it didn't pass before, and it doesn't pass now, but at least it parses...
This commit is contained in:
parent
325263fe22
commit
7e89a514a5
@ -13,7 +13,7 @@
|
||||
|
||||
fn starve_main(alive: chan<int>) {
|
||||
debug!("signalling main");
|
||||
alive <| 1;
|
||||
alive.recv(1);
|
||||
debug!("starving main");
|
||||
let i: int = 0;
|
||||
loop { i += 1; }
|
||||
@ -22,10 +22,12 @@ fn starve_main(alive: chan<int>) {
|
||||
pub fn main() {
|
||||
let alive: port<int> = port();
|
||||
debug!("main started");
|
||||
let s: task = spawn starve_main(chan(alive));
|
||||
let s: task = do task::spawn {
|
||||
starve_main(chan(alive));
|
||||
};
|
||||
let i: int;
|
||||
debug!("main waiting for alive signal");
|
||||
alive |> i;
|
||||
alive.send(i);
|
||||
debug!("main got alive signal");
|
||||
while i < 50 { debug!("main iterated"); i += 1; }
|
||||
debug!("main completed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user