From 4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3 Mon Sep 17 00:00:00 2001 From: mlugg Date: Sun, 13 Oct 2024 17:56:47 +0100 Subject: test: update for `CallingConvention` changes This also includes some compiler and std changes to correct error messages which weren't properly updated before. --- .../function-only_builtins_outside_function.zig | 29 +++++++++------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'test/cases/compile_errors/function-only_builtins_outside_function.zig') diff --git a/test/cases/compile_errors/function-only_builtins_outside_function.zig b/test/cases/compile_errors/function-only_builtins_outside_function.zig index a9871e2b59..8178ee51fa 100644 --- a/test/cases/compile_errors/function-only_builtins_outside_function.zig +++ b/test/cases/compile_errors/function-only_builtins_outside_function.zig @@ -1,7 +1,3 @@ -comptime { - @setAlignStack(1); -} - comptime { @branchHint(.cold); } @@ -54,16 +50,15 @@ comptime { // backend=stage2 // target=native // -// :2:5: error: '@setAlignStack' outside function scope -// :6:5: error: '@branchHint' outside function scope -// :10:5: error: '@src' outside function scope -// :14:5: error: '@returnAddress' outside function scope -// :18:5: error: '@frameAddress' outside function scope -// :22:5: error: '@breakpoint' outside function scope -// :26:5: error: '@cVaArg' outside function scope -// :30:5: error: '@cVaCopy' outside function scope -// :34:5: error: '@cVaEnd' outside function scope -// :38:5: error: '@cVaStart' outside function scope -// :42:5: error: '@workItemId' outside function scope -// :46:5: error: '@workGroupSize' outside function scope -// :50:5: error: '@workGroupId' outside function scope +// :2:5: error: '@branchHint' outside function scope +// :6:5: error: '@src' outside function scope +// :10:5: error: '@returnAddress' outside function scope +// :14:5: error: '@frameAddress' outside function scope +// :18:5: error: '@breakpoint' outside function scope +// :22:5: error: '@cVaArg' outside function scope +// :26:5: error: '@cVaCopy' outside function scope +// :30:5: error: '@cVaEnd' outside function scope +// :34:5: error: '@cVaStart' outside function scope +// :38:5: error: '@workItemId' outside function scope +// :42:5: error: '@workGroupSize' outside function scope +// :46:5: error: '@workGroupId' outside function scope -- cgit v1.2.3