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

@@ -1,5 +1,6 @@
pub export fn entry() void {
var a: [:0]const u8 = "foo";
_ = &a;
switch (a) {
("--version"), ("version") => unreachable,
else => {},
@@ -10,4 +11,4 @@ pub export fn entry() void {
// backend=stage2
// target=native
//
// :3:13: error: switch on type '[:0]const u8'
// :4:13: error: switch on type '[:0]const u8'