summaryrefslogtreecommitdiff
path: root/test/pending/jvm
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-05-31 22:03:36 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-05-31 22:03:36 +0000
commite0a4e468b76061840c585824f93163529dce73f6 (patch)
tree0fe41836801b56b19d5854913b2566d74c748b81 /test/pending/jvm
parent7aab2a8d9e6254ee30e6be338ad0ae968c2d165c (diff)
downloadscala-e0a4e468b76061840c585824f93163529dce73f6.tar.gz
scala-e0a4e468b76061840c585824f93163529dce73f6.tar.bz2
scala-e0a4e468b76061840c585824f93163529dce73f6.zip
Moved test for offline bug fixing.
Diffstat (limited to 'test/pending/jvm')
-rw-r--r--test/pending/jvm/terminateLinked.check1
-rw-r--r--test/pending/jvm/terminateLinked.scala24
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")
+ }
+}