summaryrefslogtreecommitdiff
path: root/test/files/instrumented/inline-in-constructors/test_3.scala
blob: 949e9945e781ba9e7c0ac25d7804e1c4c78a83fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import scala.tools.partest.instrumented.Instrumentation._
import instrumented._

object Test {
  def main(args: Array[String]) {
    if (scala.tools.partest.utils.Properties.isAvian) {
      println("!!!TEST SKIPPED!!!")
      println("Instrumentation is not supported on Avian.")
    } else {
      // force predef initialization before profiling
      Predef
      MyPredef
      startProfiling()
      val a = new Foo(2)
      val b = new Bar(true)
      stopProfiling()
      printStatistics()
    }
  }
}