aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-overflowing-sub.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-fail-overflowing-sub.err.exp')
-rw-r--r--tests/functional/lang/eval-fail-overflowing-sub.err.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-overflowing-sub.err.exp b/tests/functional/lang/eval-fail-overflowing-sub.err.exp
new file mode 100644
index 000000000..66a3a03f8
--- /dev/null
+++ b/tests/functional/lang/eval-fail-overflowing-sub.err.exp
@@ -0,0 +1,9 @@
+error:
+ … while calling the 'sub' builtin
+ at /pwd/lang/eval-fail-overflowing-sub.nix:4:6:
+ 3| b = 2;
+ 4| in a - b
+ | ^
+ 5|
+
+ error: integer overflow in subtracting -9223372036854775807 - 2