diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-10 19:45:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-10 19:45:16 +0200 |
| commit | 6bb6013d3a4da18ca79c5d4d882920cc147520bf (patch) | |
| tree | 8ddc329028ab11506fc22fd9a9a673243e26628a /test/behavior/pointers.zig | |
| parent | 298328581534de4b7cb984f7d5e8a5c4080a881c (diff) | |
| parent | 64563e2fffd0e304019c343a32f31c925be20ea2 (diff) | |
| download | zig-6bb6013d3a4da18ca79c5d4d882920cc147520bf.tar.gz zig-6bb6013d3a4da18ca79c5d4d882920cc147520bf.zip | |
Merge pull request #24768 from alichraghi/spv5
spirv: remove prune_unused ISel
Diffstat (limited to 'test/behavior/pointers.zig')
| -rw-r--r-- | test/behavior/pointers.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/behavior/pointers.zig b/test/behavior/pointers.zig index fbc74c1718..f6caa3c76e 100644 --- a/test/behavior/pointers.zig +++ b/test/behavior/pointers.zig @@ -267,6 +267,8 @@ test "implicit cast error unions with non-optional to optional pointer" { } test "compare equality of optional and non-optional pointer" { + if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; + const a = @as(*const usize, @ptrFromInt(0x12345678)); const b = @as(?*usize, @ptrFromInt(0x12345678)); try expect(a == b); @@ -453,6 +455,8 @@ test "pointer sentinel with +inf" { } test "pointer to array at fixed address" { + if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; + const array = @as(*volatile [2]u32, @ptrFromInt(0x10)); // Silly check just to reference `array` try expect(@intFromPtr(&array[0]) == 0x10); @@ -494,6 +498,8 @@ test "pointer-integer arithmetic affects the alignment" { } test "@intFromPtr on null optional at comptime" { + if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; + { const pointer = @as(?*u8, @ptrFromInt(0x000)); const x = @intFromPtr(pointer); @@ -704,6 +710,8 @@ test "pointer-to-array constness for zero-size elements, const" { } test "cast pointers with zero sized elements" { + if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; + const a: *void = undefined; const b: *[1]void = a; _ = b; |
