about summary refs log tree commit diff
path: root/tvix/eval/src/tests/nix_tests/eval-okay-tail-call-1.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/tests/nix_tests/eval-okay-tail-call-1.nix')
-rw-r--r--tvix/eval/src/tests/nix_tests/eval-okay-tail-call-1.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/nix_tests/eval-okay-tail-call-1.nix b/tvix/eval/src/tests/nix_tests/eval-okay-tail-call-1.nix
new file mode 100644
index 000000000000..a3962ce3fdb5
--- /dev/null
+++ b/tvix/eval/src/tests/nix_tests/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