| author | |
| committer | |
| log | 4d296debefccbd80f2007685a27386b7434464dd |
| tree | 9fbe2dce1ca48e31ddcaf2e618c46b35852fb46e |
| parent | e507f0c0aa2267f003ba2afb30448fc723d54418 |
1 files changed, 1 insertions(+), 0 deletions(-)
test/behavior/slice.zig+1| ... | ... | @@ -181,6 +181,7 @@ test "slicing zero length array" { |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | test "slicing pointer by length" { |
| 184 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | |
| 184 | 185 | const array = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 }; |
| 185 | 186 | const ptr: [*]const u8 = @ptrCast([*]const u8, &array); |
| 186 | 187 | const slice = ptr[1..][0..5]; |