From bf951ec134e8ee2fcfc28152b6d72ddb2c42b988 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 1 Jul 2015 13:53:37 +0200 Subject: Fix some tests, move others to pending/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move run/t8960 to pending It tests the serialVersionUID field on closure classes. The field doesn't exist for indyLambda closures. See https://issues.scala-lang.org/browse/SI-9373 Move some reify tests to pending They fail at runtime in GenBCode since scala is built with indyLambda enabled: java.lang.AssertionError: assertion failed: Bad superClass for trait JFunction1: class Any at scala.tools.nsc.Global.assert(Global.scala:261) at scala.tools.nsc.backend.jvm.BTypesFromSymbols.setClassInfo(BTypesFromSymbols.scala:228) Noted in https://issues.scala-lang.org/browse/SI-9374 force t6546 to GenASM - no closure elimination in GenBCode yet Noted in https://issues.scala-lang.org/browse/SI-9364. Fix or disable some tests that fail because of the old optimizer The old inliner fails more often when the library is built with indylambda. Noted in https://issues.scala-lang.org/browse/SI-9374. Example: List.foreach ➜ sandbox git:(jfun) ✗ qs -Ybackend:GenASM -optimize -Yinline-warnings Welcome to Scala version 2.12.0-20150630-220939-1cb032d806 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45). Type in expressions to have them evaluated. Type :help for more information. scala> List(1,2,3).foreach(x => x + 1) :11: warning: Could not inline required method foreach because bytecode unavailable. List(1,2,3).foreach(x => x + 1) ^ :11: warning: At the end of the day, could not inline @inline-marked method foreach List(1,2,3).foreach(x => x + 1) ^ Upate a number of tests for having indyLambda enabled The delambdafyLambdaClassNames tests was removed, there's nothing to tests with indyLambda. --- test/files/run/reify_newimpl_52.scala | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/files/run/reify_newimpl_52.scala (limited to 'test/files/run/reify_newimpl_52.scala') diff --git a/test/files/run/reify_newimpl_52.scala b/test/files/run/reify_newimpl_52.scala deleted file mode 100644 index f01199e830..0000000000 --- a/test/files/run/reify_newimpl_52.scala +++ /dev/null @@ -1,18 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.tools.reflect.Eval - -object Test extends App { - { - var counter = 0 - lazy val x = { counter += 1; counter } - lazy val y = { counter += 1; counter } - val code = reify { - def foo = y // ensures that y is the first freevar we find - val bar = reify { println(y * x) } - bar.eval - println(x) - println(y) - } - code.eval - } -} \ No newline at end of file -- cgit v1.2.3