From 4d296debefccbd80f2007685a27386b7434464dd Mon Sep 17 00:00:00 2001 From: dweiller <4678790+dweiller@users.noreplay.github.com> Date: Thu, 4 May 2023 10:58:30 +1000 Subject: [PATCH] test: disable by-length slice test on wasm backend --- test/behavior/slice.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/test/behavior/slice.zig b/test/behavior/slice.zig index 575665cf7f..29ceb061c1 100644 --- a/test/behavior/slice.zig +++ b/test/behavior/slice.zig @@ -181,6 +181,7 @@ test "slicing zero length array" { } test "slicing pointer by length" { + if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; const array = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 }; const ptr: [*]const u8 = @ptrCast([*]const u8, &array); const slice = ptr[1..][0..5];