aboutsummaryrefslogtreecommitdiff
path: root/tests/partest-test/forkbomb.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/partest-test/forkbomb.scala')
-rw-r--r--tests/partest-test/forkbomb.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/partest-test/forkbomb.scala b/tests/partest-test/forkbomb.scala
new file mode 100644
index 000000000..1d3cda172
--- /dev/null
+++ b/tests/partest-test/forkbomb.scala
@@ -0,0 +1,7 @@
+object Test {
+ def main(args: Array[String]): Unit =
+ while(true)
+ Runtime
+ .getRuntime()
+ .exec(Array("java", "-cp", System.getProperty("java.class.path"), "Test"));
+}