diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-14 09:03:05 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-20 14:54:19 +0200 |
commit | 2cd8f4535a82ea0df919c06fd1ea73ee02f9bad9 (patch) | |
tree | d7bbdfccd7e314bbdca288b3cbc68ca26beda651 /test/files/run/large_class.scala | |
parent | 051456c94b45057c617ae802a427533b9c8590b6 (diff) | |
download | scala-2cd8f4535a82ea0df919c06fd1ea73ee02f9bad9.tar.gz scala-2cd8f4535a82ea0df919c06fd1ea73ee02f9bad9.tar.bz2 scala-2cd8f4535a82ea0df919c06fd1ea73ee02f9bad9.zip |
Upgrade ASM to 5.0.2
This commit is a squashed version of all commits in PR #3747.
For future upgrades, consult the README and check the commits in
https://github.com/scala/scala/pull/3747/commits
There's one bug in ASM 5.0.2 that breaks scalac:
http://forge.ow2.org/tracker/?func=detail&aid=317200&group_id=23&atid=100023
This bug is fixed in ASM trunk, the patch has been merged into this
commit. A future upgrade of ASM should contain the fix.
Diffstat (limited to 'test/files/run/large_class.scala')
-rw-r--r-- | test/files/run/large_class.scala | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/files/run/large_class.scala b/test/files/run/large_class.scala new file mode 100644 index 0000000000..aa486ef8f7 --- /dev/null +++ b/test/files/run/large_class.scala @@ -0,0 +1,27 @@ +import scala.tools.partest._ +import java.io.{Console => _, _} + +// a cold run of partest takes about 15s for this test on my laptop +object Test extends DirectTest { + override def extraSettings: String = "-usejavacp -d " + testOutput.path + + def s(n: Int) = "\""+n+"\"" + + override def code + = s""" + |class BigEnoughToFail { + | def m(a: String, b: String, c: String, d: String, e: String, f: String) = null + | ${(1 to 5500) map (n => "def f"+n+" = m("+ s(n+10000)+","+ + s(n+20000)+","+ + s(n+30000)+","+ + s(n+40000)+","+ + s(n+50000)+","+ + s(n+60000)+")") mkString ";"} + |}""".stripMargin.trim + + override def show(): Unit = { + Console.withErr(System.out) { + compile() + } + } +} |