forked from lix-project/lix
Add a test to check that tail calls run in bounded stack space
This commit is contained in:
parent
c897bac549
commit
2bcb384e95
1
tests/lang/eval-okay-tail-call-1.exp
Normal file
1
tests/lang/eval-okay-tail-call-1.exp
Normal file
|
@ -0,0 +1 @@
|
||||||
|
100000
|
3
tests/lang/eval-okay-tail-call-1.nix
Normal file
3
tests/lang/eval-okay-tail-call-1.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
let
|
||||||
|
f = n: if n == 100000 then n else f (n + 1);
|
||||||
|
in f 0
|
Loading…
Reference in a new issue