Indirect tests for tail call diagnostics removed

This commit is contained in:
Andrey Breslav
2013-11-26 21:21:36 +04:00
parent 94500bd968
commit 0316e6cb8d
20 changed files with 80 additions and 451 deletions
@@ -1,10 +1,8 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun test() {
[tailRecursive] fun g3(counter : Int, x : Any) {
if (counter > 0) { g3(counter - 1, "tail") }
[tailRecursive] fun g3(counter : Int) {
if (counter > 0) { g3(counter - 1) }
}
g3(1000000, "test")
g3(1000000)
}
fun box() : String {