summaryrefslogtreecommitdiff
path: root/test/files/run/tailcalls.check
diff options
context:
space:
mode:
authorJohannes Rudolph <johannes.rudolph@gmail.com>2014-06-25 13:40:13 +0200
committerJohannes Rudolph <johannes.rudolph@gmail.com>2014-06-25 15:24:26 +0200
commit299594e63a925c3e6042c6fd920de2f359417cbd (patch)
tree61558e65344b295d63c0ec425782c607e47d4104 /test/files/run/tailcalls.check
parent1c0b48da8dfa124eb762620c8cb803a9079b7c81 (diff)
downloadscala-299594e63a925c3e6042c6fd920de2f359417cbd.tar.gz
scala-299594e63a925c3e6042c6fd920de2f359417cbd.tar.bz2
scala-299594e63a925c3e6042c6fd920de2f359417cbd.zip
SI-8657 don't miss tailrec defs in more positions
1) First operand of boolean expression using `&&` or `||`. Second operands of those boolean exprs were already treated specially here but handling for first operands was missing. 2) Condition of `If`. Also added a test for guards.
Diffstat (limited to 'test/files/run/tailcalls.check')
-rw-r--r--test/files/run/tailcalls.check8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/tailcalls.check b/test/files/run/tailcalls.check
index 7607921856..92d4f8a3c8 100644
--- a/test/files/run/tailcalls.check
+++ b/test/files/run/tailcalls.check
@@ -50,6 +50,10 @@ test NonTailCall.f2
test TailCall.b1 was successful
test TailCall.b2 was successful
test FancyTailCalls.tcTryLocal was successful
+test FancyTailCalls.tcInBooleanExprFirstOp was successful
+test FancyTailCalls.tcInBooleanExprSecondOp was successful
+test FancyTailCalls.tcInIfCond was successful
+test FancyTailCalls.tcInPatternGuard was successful
test FancyTailCalls.differentInstance was successful
test PolyObject.tramp was successful
#partest avian
@@ -104,5 +108,9 @@ test NonTailCall.f2
test TailCall.b1 was successful
test TailCall.b2 was successful
test FancyTailCalls.tcTryLocal was successful
+test FancyTailCalls.tcInBooleanExprFirstOp was successful
+test FancyTailCalls.tcInBooleanExprSecondOp was successful
+test FancyTailCalls.tcInIfCond was successful
+test FancyTailCalls.tcInPatternGuard was successful
test FancyTailCalls.differentInstance was successful
test PolyObject.tramp was successful