summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-08-09 17:23:47 +0200
committerphaller <hallerp@gmail.com>2012-11-02 18:38:51 +0100
commit007eedf97de9d430f2f959abe3feafe3c37bad19 (patch)
tree31fd2576485bd2365a5b4d8d1530faba3be6ae4f /test
parente566ab3702cbd89988191a9d86b756b78a534dd3 (diff)
downloadscala-007eedf97de9d430f2f959abe3feafe3c37bad19.tar.gz
scala-007eedf97de9d430f2f959abe3feafe3c37bad19.tar.bz2
scala-007eedf97de9d430f2f959abe3feafe3c37bad19.zip
Revert "Add missing cases in tail return transform"
This reverts commit 8d020fab9758ced93eb18fa51c906b95ec104aed.
Diffstat (limited to 'test')
-rw-r--r--test/files/continuations-run/t5314.check4
-rw-r--r--test/files/continuations-run/t5314.scala11
2 files changed, 0 insertions, 15 deletions
diff --git a/test/files/continuations-run/t5314.check b/test/files/continuations-run/t5314.check
index 4b35d8e6d0..4951e7caae 100644
--- a/test/files/continuations-run/t5314.check
+++ b/test/files/continuations-run/t5314.check
@@ -1,7 +1,3 @@
-7
-7
-7
-8
8
hi
8
diff --git a/test/files/continuations-run/t5314.scala b/test/files/continuations-run/t5314.scala
index d611016ce4..0bdea19824 100644
--- a/test/files/continuations-run/t5314.scala
+++ b/test/files/continuations-run/t5314.scala
@@ -29,17 +29,6 @@ object Test extends App {
def nocps(x: Int): Int = { return x; x }
- def foo2(x:Int): Int @cps[Int] = 7
- def bar2(x:Int): Int @cps[Int] = { foo2(x); return 7 }
- def bar3(x:Int): Int @cps[Int] = { foo2(x); if (x == 7) return 7 else return foo2(x) }
- def bar4(x:Int): Int @cps[Int] = { foo2(x); if (x == 7) return 7 else foo2(x) }
- def bar5(x:Int): Int @cps[Int] = { foo2(x); if (x == 7) return 7 else 8 }
- println(reset { bar2(10) })
- println(reset { bar3(10) })
- println(reset { bar4(10) })
- println(reset { bar5(10) })
-
- /* original test case */
val repro = new ReturnRepro
repro.caller
repro.caller2