aboutsummaryrefslogtreecommitdiff
path: root/tests/partest-test/infiniteAlloc.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/partest-test/infiniteAlloc.scala')
-rw-r--r--tests/partest-test/infiniteAlloc.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/partest-test/infiniteAlloc.scala b/tests/partest-test/infiniteAlloc.scala
new file mode 100644
index 000000000..89fa5d6ef
--- /dev/null
+++ b/tests/partest-test/infiniteAlloc.scala
@@ -0,0 +1,9 @@
+import scala.collection.mutable
+object Test {
+ val map = mutable.Map.empty[String, String]
+
+ def main(args: Array[String]): Unit = while (true) {
+ val time = System.currentTimeMillis.toString
+ map += (time -> time)
+ }
+}