summaryrefslogtreecommitdiff
path: root/test/files/run/t3895b.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-18 02:13:07 +0000
committerPaul Phillips <paulp@improving.org>2010-12-18 02:13:07 +0000
commite911fdab94900bea85645201311f5ec2dc758fcd (patch)
treeb54f4b2a9cf4d8e6a55e93640ca26a3f796391b9 /test/files/run/t3895b.scala
parent9cbadc4d7cb11a303e500cc47af9e050b5adb96d (diff)
downloadscala-e911fdab94900bea85645201311f5ec2dc758fcd.tar.gz
scala-e911fdab94900bea85645201311f5ec2dc758fcd.tar.bz2
scala-e911fdab94900bea85645201311f5ec2dc758fcd.zip
Added some infrastructure for tracking and disp...
Added some infrastructure for tracking and displaying information. Used it to generate phase timing tables. Couldn't bring myself to add another option so it's temporarily behind a system property until I sort out the output options. % scalac -Dscala.timings foo.scala // or: ant -Djvm.opts="-Dscala.timings" [...] phase id ms share -------------- -- ---- ----- typer 4 5816 44.94 mixin 20 1220 9.43 specialize 13 1179 9.11 erasure 15 916 7.08 ...etc. No review.
Diffstat (limited to 'test/files/run/t3895b.scala')
-rw-r--r--test/files/run/t3895b.scala7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/files/run/t3895b.scala b/test/files/run/t3895b.scala
index fd74aab125..a74f7b2ead 100644
--- a/test/files/run/t3895b.scala
+++ b/test/files/run/t3895b.scala
@@ -1,5 +1,4 @@
-class DryRun
-{
+class DryRun {
import scala.tools.nsc.{Global, Settings, CompilerCommand}
import scala.tools.nsc.reporters.ConsoleReporter
@@ -7,12 +6,10 @@ class DryRun
settings.classpath.value = System.getProperty("java.class.path")
val command = new CompilerCommand(List(), settings)
val reporter = new ConsoleReporter(settings, scala.Console.in, new java.io.PrintWriter(new java.io.PrintStream(scala.Console.out)))
- object compiler extends Global(command.settings, reporter)
- {
+ object compiler extends Global(command.settings, reporter) {
object test1
lazy val test2 = 1
object test3
-
}
def test {
compiler.test1