diff options
-rw-r--r-- | tests/lang/eval-okay-tail-call-1.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-tail-call-1.nix | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-tail-call-1.exp b/tests/lang/eval-okay-tail-call-1.exp new file mode 100644 index 0000000000..f7393e847d --- /dev/null +++ b/tests/lang/eval-okay-tail-call-1.exp @@ -0,0 +1 @@ +100000 diff --git a/tests/lang/eval-okay-tail-call-1.nix b/tests/lang/eval-okay-tail-call-1.nix new file mode 100644 index 0000000000..a3962ce3fd --- /dev/null +++ b/tests/lang/eval-okay-tail-call-1.nix @@ -0,0 +1,3 @@ +let + f = n: if n == 100000 then n else f (n + 1); +in f 0 |