diff options
| author | WormHeamer | 2025-08-04 22:13:25 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-04 22:13:25 -0400 |
| commit | 88b01f43312eeceba87a1378be5cd63bb11f167f (patch) | |
| tree | c7046558223ac692958ca1c7b9da71f05493f148 /test.lang | |
| parent | 22aa7559a37c49def05e8a43b12561b17a4af258 (diff) | |
fix bug of lhs getting culled if same node optimized out of rhs
Diffstat (limited to 'test.lang')
| -rw-r--r-- | test.lang | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -9,6 +9,7 @@ // also single-line now proc main(a i64) { - return a + -a - // (true = 0) = (a xor b) + let x = (a + -a) = (a xor a) + let y = (a + a) = (a * 2) + return x & y & (a = a) & ((a + 2) <> a) } |
