test: skip tests that were not meant to pass for spirv
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user