summaryrefslogtreecommitdiff
path: root/test/files/instrumented/inline-in-constructors/test_3.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/instrumented/inline-in-constructors/test_3.scala')
-rw-r--r--test/files/instrumented/inline-in-constructors/test_3.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/instrumented/inline-in-constructors/test_3.scala b/test/files/instrumented/inline-in-constructors/test_3.scala
new file mode 100644
index 0000000000..c4d4cc5f37
--- /dev/null
+++ b/test/files/instrumented/inline-in-constructors/test_3.scala
@@ -0,0 +1,15 @@
+import scala.tools.partest.instrumented.Instrumentation._
+import instrumented._
+
+object Test {
+ def main(args: Array[String]) {
+ // force predef initialization before profiling
+ Predef
+ MyPredef
+ startProfiling()
+ val a = new Foo(2)
+ val b = new Bar(true)
+ stopProfiling()
+ printStatistics()
+ }
+}