diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-17 23:46:09 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-18 18:59:24 +0200 |
commit | 2fc24a65a92e90a2152fd11e03f6c9fcbd9812ca (patch) | |
tree | 9e9b6c9760114408f77a432d58d01b8f9fdfcae6 /test | |
parent | 1e3012d5542b41b7303e6b8eda0931814a0b28f9 (diff) | |
download | scala-2fc24a65a92e90a2152fd11e03f6c9fcbd9812ca.tar.gz scala-2fc24a65a92e90a2152fd11e03f6c9fcbd9812ca.tar.bz2 scala-2fc24a65a92e90a2152fd11e03f6c9fcbd9812ca.zip |
test case closes SI-5770
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t5770.check | 10 | ||||
-rw-r--r-- | test/files/run/t5770.scala | 25 |
2 files changed, 35 insertions, 0 deletions
diff --git a/test/files/run/t5770.check b/test/files/run/t5770.check new file mode 100644 index 0000000000..eeb1d55321 --- /dev/null +++ b/test/files/run/t5770.check @@ -0,0 +1,10 @@ +1
+2
+3
+4
+5
+6
+7
+8
+9
+10
diff --git a/test/files/run/t5770.scala b/test/files/run/t5770.scala new file mode 100644 index 0000000000..b6c9236844 --- /dev/null +++ b/test/files/run/t5770.scala @@ -0,0 +1,25 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect._ + +object Test extends App { + var i = 0 + val action = reify { i += 1; println(i) }.tree + + val tb1 = cm.mkToolBox() + tb1.eval(action) + tb1.eval(action) + tb1.eval(action) + tb1.frontEnd.reset() + tb1.eval(action) + tb1.eval(action) + + val tb2 = cm.mkToolBox() + tb2.eval(action) + tb2.frontEnd.reset() + tb2.eval(action) + tb2.eval(action) + tb2.frontEnd.reset() + tb2.eval(action) + tb2.eval(action) +} |