aboutsummaryrefslogtreecommitdiff
path: root/tests/i/integer-boundaries/program.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.one>2026-10-16 20:57:23 +0800
committer_ov4 <ov4@ov4.one>2026-10-16 20:57:23 +0800
commite1e789ac0249149a4aa1671f5f9260d488cb617a (patch)
tree25a9b27543f8df0186ea1fabd82ec57561d618d7 /tests/i/integer-boundaries/program.cps
parent670b0d8a4669d939b09b4990be89173805831215 (diff)
test(compiler): expose minimum integer literal corruption
Check the minimum i64 value as a source literal as well as input. Both execution paths currently change it by one without a diagnostic. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/integer-boundaries/program.cps')
-rw-r--r--tests/i/integer-boundaries/program.cps1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i/integer-boundaries/program.cps b/tests/i/integer-boundaries/program.cps
index c08b658..a4aec33 100644
--- a/tests/i/integer-boundaries/program.cps
+++ b/tests/i/integer-boundaries/program.cps
@@ -9,3 +9,4 @@ OUTPUT Lo + 1
OUTPUT Hi + Lo
OUTPUT Lo < 0, ":", Hi > 0, ":", Lo < Hi
OUTPUT Hi DIV 1, ":", Lo DIV 1, ":", Lo MOD 1
+OUTPUT -9223372036854775808