authorgravatar for 4678790+dweiller@users.noreply.github.comDominic <4678790+dweiller@users.noreply.github.com> 2023-05-04 10:58:30+10:00
committergravatar for 4678790+dweiller@users.noreply.github.comDominic <4678790+dweiller@users.noreply.github.com> 2023-05-07 15:55:21+10:00
log4d296debefccbd80f2007685a27386b7434464dd
tree9fbe2dce1ca48e31ddcaf2e618c46b35852fb46e
parente507f0c0aa2267f003ba2afb30448fc723d54418

test: disable by-length slice test on wasm backend


1 files changed, 1 insertions(+), 0 deletions(-)

test/behavior/slice.zig+1
...@@ -181,6 +181,7 @@ test "slicing zero length array" {...@@ -181,6 +181,7 @@ test "slicing zero length array" {
181}181}
182182
183test "slicing pointer by length" {183test "slicing pointer by length" {
184 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
184 const array = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 };185 const array = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 };
185 const ptr: [*]const u8 = @ptrCast([*]const u8, &array);186 const ptr: [*]const u8 = @ptrCast([*]const u8, &array);
186 const slice = ptr[1..][0..5];187 const slice = ptr[1..][0..5];