diff --git a/tests/run/deadlock.check b/tests/run/deadlock.check new file mode 100644 index 000000000000..d00491fd7e5b --- /dev/null +++ b/tests/run/deadlock.check @@ -0,0 +1 @@ +1 diff --git a/tests/run/deadlock.scala b/tests/run/deadlock.scala new file mode 100644 index 000000000000..2cc1d883e3ed --- /dev/null +++ b/tests/run/deadlock.scala @@ -0,0 +1,11 @@ +// from https://github.com/rickynils/scalacheck/issues/290 +import scala.concurrent._ +import scala.concurrent.duration._ +import java.util.concurrent.Executors + +object Test { + import ExecutionContext.Implicits.global + val x = Await.result(Future(1), 1000.seconds) + def main(args: Array[String]) = println(x) +} +