| ... | ... | @@ -2381,6 +2381,8 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 2381 | 2381 | \\ a &= (a &= 1); |
| 2382 | 2382 | \\ a |= (a |= 1); |
| 2383 | 2383 | \\ a ^= (a ^= 1); |
| 2384 | \\ a /= (a /= 1); |
| 2385 | \\ a %= (a %= 1); |
| 2384 | 2386 | \\ a >>= (a >>= 1); |
| 2385 | 2387 | \\ a <<= (a <<= 1); |
| 2386 | 2388 | \\} |
| ... | ... | @@ -2417,6 +2419,16 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 2417 | 2419 | \\ ref.* = ref.* ^ @as(c_int, 1); |
| 2418 | 2420 | \\ break :blk ref.*; |
| 2419 | 2421 | \\ }); |
| 2422 | \\ a /= (blk: { |
| 2423 | \\ const ref = &a; |
| 2424 | \\ ref.* = ref.* / @as(c_int, 1); |
| 2425 | \\ break :blk ref.*; |
| 2426 | \\ }); |
| 2427 | \\ a %= (blk: { |
| 2428 | \\ const ref = &a; |
| 2429 | \\ ref.* = ref.* % @as(c_int, 1); |
| 2430 | \\ break :blk ref.*; |
| 2431 | \\ }); |
| 2420 | 2432 | \\ a >>= @intCast(@import("std").math.Log2Int(c_int), (blk: { |
| 2421 | 2433 | \\ const ref = &a; |
| 2422 | 2434 | \\ ref.* = ref.* >> @intCast(@import("std").math.Log2Int(c_int), @as(c_int, 1)); |