mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
test: disable by-length slice test on wasm backend
This commit is contained in:
parent
e507f0c0aa
commit
4d296debef
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user