From e4e3d7ab4140ae6f078d3ffd72fce4c0a5e6e59f Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Mon, 28 Oct 2024 21:57:29 +0100 Subject: Sema: Disallow calling functions with certain special calling conventions. --- .../compile_errors/calling_function_with_naked_calling_convention.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/cases/compile_errors/calling_function_with_naked_calling_convention.zig b/test/cases/compile_errors/calling_function_with_naked_calling_convention.zig index 2bd0364d4f..ea4e42f15d 100644 --- a/test/cases/compile_errors/calling_function_with_naked_calling_convention.zig +++ b/test/cases/compile_errors/calling_function_with_naked_calling_convention.zig @@ -1,11 +1,11 @@ export fn entry() void { foo(); } -fn foo() callconv(.Naked) void {} +fn foo() callconv(.naked) void {} // error // backend=llvm // target=native // -// :2:5: error: unable to call function with naked calling convention +// :2:5: error: unable to call function with calling convention 'naked' // :4:1: note: function declared here -- cgit v1.2.3