Skip to content

Commit 440f5ac

Browse files
author
Eric Holk
committed
---
yaml --- r: 2672 b: refs/heads/master c: 51e1ce2 h: refs/heads/master v: v3
1 parent 1265200 commit 440f5ac

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
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: 4eb476fc7551e1c7863ed86c89a0370fb458bbdb
2+
refs/heads/master: 51e1ce292d0a64630df1764bb3f71b885aff7116
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
This program should hang on the r <- po line.
3+
*/
4+
5+
fn main() {
6+
let port[int] po = port();
7+
let chan[int] ch = chan(po);
8+
9+
auto r <- po;
10+
11+
ch <| 42;
12+
13+
log_err r;
14+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
This is about the simplest program that can successfully send a
3+
message.
4+
*/
5+
6+
fn main() {
7+
let port[int] po = port();
8+
let chan[int] ch = chan(po);
9+
10+
ch <| 42;
11+
12+
auto r <- po;
13+
14+
log_err r;
15+
}

0 commit comments

Comments
 (0)