aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_func_for_callconv.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-10-13 17:56:47 +0100
committermlugg <mlugg@mlugg.co.uk>2024-10-19 19:15:23 +0100
commit4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3 (patch)
tree0c239f9b68fbbc13ae94462756d466ef774a9772 /test/cases/compile_errors/invalid_func_for_callconv.zig
parentec19086aa0491024622c444b0d9310560de9e6f0 (diff)
downloadzig-4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3.tar.gz
zig-4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3.zip
test: update for `CallingConvention` changes
This also includes some compiler and std changes to correct error messages which weren't properly updated before.
Diffstat (limited to 'test/cases/compile_errors/invalid_func_for_callconv.zig')
-rw-r--r--test/cases/compile_errors/invalid_func_for_callconv.zig15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/cases/compile_errors/invalid_func_for_callconv.zig b/test/cases/compile_errors/invalid_func_for_callconv.zig
index 490b87bc4b..f82b3a63b4 100644
--- a/test/cases/compile_errors/invalid_func_for_callconv.zig
+++ b/test/cases/compile_errors/invalid_func_for_callconv.zig
@@ -9,12 +9,11 @@ export fn signal_param(_: u32) callconv(.Signal) void {}
export fn signal_ret() callconv(.Signal) noreturn {}
// error
-// backend=stage2
// target=x86_64-linux
-//
-// :1:28: error: first parameter of function with 'Interrupt' calling convention must be a pointer type
-// :2:43: error: second parameter of function with 'Interrupt' calling convention must be a 64-bit integer
-// :3:51: error: 'Interrupt' calling convention supports up to 2 parameters, found 3
-// :4:69: error: function with calling convention 'Interrupt' must return 'void' or 'noreturn'
-// :8:24: error: parameters are not allowed with 'Signal' calling convention
-// :9:34: error: callconv 'Signal' is only available on AVR, not x86_64
+//
+// :1:28: error: first parameter of function with 'x86_64_interrupt' calling convention must be a pointer type
+// :2:43: error: second parameter of function with 'x86_64_interrupt' calling convention must be a 64-bit integer
+// :3:51: error: 'x86_64_interrupt' calling convention supports up to 2 parameters, found 3
+// :4:69: error: function with calling convention 'x86_64_interrupt' must return 'void' or 'noreturn'
+// :8:24: error: parameters are not allowed with 'avr_signal' calling convention
+// :9:34: error: callconv 'avr_signal' only available on architectures 'avr'