diff options
| author | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-05-04 10:58:30 +1000 |
|---|---|---|
| committer | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-05-07 15:55:21 +1000 |
| commit | 4d296debefccbd80f2007685a27386b7434464dd (patch) | |
| tree | 9fbe2dce1ca48e31ddcaf2e618c46b35852fb46e /test | |
| parent | e507f0c0aa2267f003ba2afb30448fc723d54418 (diff) | |
| download | zig-4d296debefccbd80f2007685a27386b7434464dd.tar.gz zig-4d296debefccbd80f2007685a27386b7434464dd.zip | |
test: disable by-length slice test on wasm backend
Diffstat (limited to 'test')
| -rw-r--r-- | test/behavior/slice.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |
