zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4d296debefccbd80f2007685a27386b7434464dd (tree)
parent e507f0c0aa2267f003ba2afb30448fc723d54418
Author: dweiller <4678790+dweiller@users.noreplay.github.com>
Date:   Thu,  4 May 2023 10:58:30 +1000

test: disable by-length slice test on wasm backend

Diffstat:
Mtest/behavior/slice.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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];