Add a test to check that tail calls run in bounded stack space

This commit is contained in:
Eelco Dolstra
2013-11-12 12:34:22 +01:00
parent c897bac549
commit 2bcb384e95
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
100000
+3
View File
@@ -0,0 +1,3 @@
let
f = n: if n == 100000 then n else f (n + 1);
in f 0