summaryrefslogtreecommitdiff
path: root/test/pending/jvm/terminateLinked.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/jvm/terminateLinked.scala')
-rw-r--r--test/pending/jvm/terminateLinked.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/pending/jvm/terminateLinked.scala b/test/pending/jvm/terminateLinked.scala
new file mode 100644
index 0000000000..2a3b7fb49e
--- /dev/null
+++ b/test/pending/jvm/terminateLinked.scala
@@ -0,0 +1,24 @@
+import scala.actors.Actor
+import Actor._
+
+object Test {
+ def main(args: Array[String]) {
+ val a = actor {
+ for (_ <- 1 to 10)
+ receive {
+ case b: Actor => link(b)
+ }
+ throw new Exception
+ }
+
+ for (_ <- 1 to 10)
+ actor {
+ a ! self
+ react {
+ case _ =>
+ }
+ }
+
+ println("Done")
+ }
+}