aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-overflowing-div.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-overflowing-div.nix')
-rw-r--r--test/testdata/eval-fail-overflowing-div.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-overflowing-div.nix b/test/testdata/eval-fail-overflowing-div.nix
new file mode 100644
index 0000000..44fbe9d
--- /dev/null
+++ b/test/testdata/eval-fail-overflowing-div.nix
@@ -0,0 +1,7 @@
1let
2 # lol, this has to be written as an expression like this because negative
3 # numbers use unary negation rather than parsing directly, and 2**63 is out
4 # of range
5 intMin = -9223372036854775807 - 1;
6 b = -1;
7in builtins.seq intMin (builtins.seq b (intMin / b))