diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-04-17 15:11:34 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-04-17 15:11:34 +0000 |
commit | 07567a3ff9b7a160c0cfec525e6c21117ec70aaa (patch) | |
tree | ac2c313c8bf8e42c1e84fd76417ee66b5d00195e /test | |
parent | 7086e9a9633ab696da83b7f54259efbc6f97f51c (diff) | |
download | scala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.tar.gz scala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.tar.bz2 scala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.zip |
Added test case for t595.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/syncchannel.check | 1 | ||||
-rw-r--r-- | test/files/run/syncchannel.scala | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/syncchannel.check b/test/files/run/syncchannel.check new file mode 100644 index 0000000000..d81cc0710e --- /dev/null +++ b/test/files/run/syncchannel.check @@ -0,0 +1 @@ +42 diff --git a/test/files/run/syncchannel.scala b/test/files/run/syncchannel.scala new file mode 100644 index 0000000000..66ae47fd0a --- /dev/null +++ b/test/files/run/syncchannel.scala @@ -0,0 +1,6 @@ +object Test { + def main(args: Array[String]) { + val c = new scala.concurrent.SyncChannel[Int] + scala.concurrent.ops.par({ c.write(42) }, { println(c.read) }) + } +} |