summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-04 04:26:12 -0400
committerWormHeamer2025-08-04 04:26:12 -0400
commitc97e987c3e0fd631cb694535859701248e1357bb (patch)
tree3b34874691f48f5c421c8c2d01d98629499528ba /test.lang
parent7df7f08dca9c54ea93839300e7b4c78289baf640 (diff)
fix communative peepholes trampling type boundaries
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.lang b/test.lang
index af8927d..bda2c90 100644
--- a/test.lang
+++ b/test.lang
@@ -9,6 +9,6 @@
// also single-line now
proc main(a i64, b i64) {
- let c = a + b
- return (a - b) = (((a + b) - b) - b)
+ return (a = a) & (b = a)
+ // (true = 0) = (a xor b)
}