From 0153f3a8f9b93ebef7b5cd70db8560fcac658ce7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 18 Jul 2023 17:12:19 -0700 Subject: Sema: fix crash: array_in_c_exported_function Fuck it, we're storing decl indexes in LazySrcLoc now. --- test/cases/compile_errors/array_in_c_exported_function.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cases/compile_errors') diff --git a/test/cases/compile_errors/array_in_c_exported_function.zig b/test/cases/compile_errors/array_in_c_exported_function.zig index e938b6afd4..0d31f69370 100644 --- a/test/cases/compile_errors/array_in_c_exported_function.zig +++ b/test/cases/compile_errors/array_in_c_exported_function.zig @@ -10,7 +10,7 @@ export fn zig_return_array() [10]u8 { // backend=stage2 // target=native // -// :1:21: error: parameter of type '[10]u8' not allowed in function with calling convention 'C' -// :1:21: note: arrays are not allowed as a parameter type +// :1:24: error: parameter of type '[10]u8' not allowed in function with calling convention 'C' +// :1:24: note: arrays are not allowed as a parameter type // :5:30: error: return type '[10]u8' not allowed in function with calling convention 'C' // :5:30: note: arrays are not allowed as a return type -- cgit v1.2.3