From 07567a3ff9b7a160c0cfec525e6c21117ec70aaa Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Thu, 17 Apr 2008 15:11:34 +0000 Subject: Added test case for t595. --- test/files/run/syncchannel.check | 1 + test/files/run/syncchannel.scala | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/files/run/syncchannel.check create mode 100644 test/files/run/syncchannel.scala 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) }) + } +} -- cgit v1.2.3