diff options
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/jvm/terminateLinked.check | 1 | ||||
-rw-r--r-- | test/pending/jvm/terminateLinked.scala | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/pending/jvm/terminateLinked.check b/test/pending/jvm/terminateLinked.check new file mode 100644 index 0000000000..a965a70ed4 --- /dev/null +++ b/test/pending/jvm/terminateLinked.check @@ -0,0 +1 @@ +Done 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") + } +} |