summaryrefslogtreecommitdiff
path: root/test/pending/script/bug2365/bug2365.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/script/bug2365/bug2365.scala')
-rwxr-xr-xtest/pending/script/bug2365/bug2365.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pending/script/bug2365/bug2365.scala b/test/pending/script/bug2365/bug2365.scala
new file mode 100755
index 0000000000..b5e05325cf
--- /dev/null
+++ b/test/pending/script/bug2365/bug2365.scala
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# This script should fail with any build of scala where #2365
+# is not fixed, and otherwise succeed. Failure means running out
+# of PermGen space.
+#
+
+scalac -cp .:/local/lib/java/ivy.jar Test.scala
+JAVA_OPTS="-XX:MaxPermSize=25M -verbose:gc" scalac -cp $CP Test