test: update cases to silence 'var is never mutated' errors

This commit is contained in:
mlugg
2023-11-11 07:27:31 +00:00
parent 2c1acb6180
commit 21fa187abc
289 changed files with 671 additions and 489 deletions

View File

@@ -7,6 +7,7 @@ pub fn main() void {
var m2: u32 = 0b0000;
assert(m1 & 0b1010 == 0b1010);
assert(m2 & 0b1010 == 0b0000);
_ = .{ &i, &j, &m1, &m2 };
}
fn assert(b: bool) void {
if (!b) unreachable;