From 21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b Mon Sep 17 00:00:00 2001 From: mlugg Date: Sat, 11 Nov 2023 07:27:31 +0000 Subject: test: update cases to silence 'var is never mutated' errors --- test/cases/compile_errors/function_ptr_alignment.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/cases/compile_errors/function_ptr_alignment.zig') diff --git a/test/cases/compile_errors/function_ptr_alignment.zig b/test/cases/compile_errors/function_ptr_alignment.zig index fabee524c7..995ef8d9b1 100644 --- a/test/cases/compile_errors/function_ptr_alignment.zig +++ b/test/cases/compile_errors/function_ptr_alignment.zig @@ -1,24 +1,24 @@ comptime { var a: *align(2) @TypeOf(foo) = undefined; - _ = a; + _ = &a; } fn foo() void {} comptime { var a: *align(1) fn () void = undefined; - _ = a; + _ = &a; } comptime { var a: *align(2) fn () align(2) void = undefined; - _ = a; + _ = &a; } comptime { var a: *align(2) fn () void = undefined; - _ = a; + _ = &a; } comptime { var a: *align(1) fn () align(2) void = undefined; - _ = a; + _ = &a; } // error -- cgit v1.2.3