From dad886659faca4fba2d4937c9bc6780591b02c27 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 3 Nov 2012 13:34:20 +0100 Subject: SI-6611 Tighten up an unsafe array optimization The net was cast too wide and was unsafely optimizing away array copies. --- test/files/instrumented/t6611.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/instrumented/t6611.scala (limited to 'test/files/instrumented/t6611.scala') diff --git a/test/files/instrumented/t6611.scala b/test/files/instrumented/t6611.scala new file mode 100644 index 0000000000..821d5f3fbf --- /dev/null +++ b/test/files/instrumented/t6611.scala @@ -0,0 +1,13 @@ +import scala.tools.partest.instrumented.Instrumentation._ + +object Test { + def main(args: Array[String]) { + startProfiling() + + // tests optimization in Cleanup for varargs reference arrays + val a = Array("") + + stopProfiling() + printStatistics() + } +} -- cgit v1.2.3