Commit 75372f12ef
Changed files (8)
test/behavior/bitcast.zig
@@ -541,7 +541,6 @@ test "@bitCast of packed struct containing pointer" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
const S = struct {
const A = packed struct {
@@ -571,7 +570,6 @@ test "@bitCast of extern struct containing pointer" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
const S = struct {
const A = extern struct {
test/behavior/comptime_memory.zig
@@ -32,8 +32,6 @@ test "type pun signed and unsigned as array pointer" {
}
test "type pun signed and unsigned as offset many pointer" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
comptime {
var x: [11]u32 = undefined;
var y: [*]i32 = @ptrCast(&x[10]);
@@ -44,8 +42,6 @@ test "type pun signed and unsigned as offset many pointer" {
}
test "type pun signed and unsigned as array pointer with pointer arithemtic" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
comptime {
var x: [11]u32 = undefined;
const y = @as([*]i32, @ptrCast(&x[10])) - 10;
@@ -293,8 +289,6 @@ test "dance on linker values" {
}
test "offset array ptr by element size" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
comptime {
const VirtualStruct = struct { x: u32 };
var arr: [4]VirtualStruct = .{
test/behavior/error.zig
@@ -1124,6 +1124,7 @@ test "result location initialization of error union with OPV payload" {
test "return error union with i65" {
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
try expect(try add(1000, 234) == 1234);
}
test/behavior/packed-union.zig
@@ -177,8 +177,6 @@ test "assigning to non-active field at comptime" {
}
test "comptime packed union of pointers" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
const U = packed union {
a: *const u32,
b: *const [1]u32,
test/behavior/pointers.zig
@@ -640,8 +640,6 @@ test "cast pointers with zero sized elements" {
}
test "comptime pointer equality through distinct fields with well-defined layout" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
const A = extern struct {
x: u32,
z: u16,
@@ -666,8 +664,6 @@ test "comptime pointer equality through distinct fields with well-defined layout
}
test "comptime pointer equality through distinct elements with well-defined layout" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
const buf: [2]u32 = .{ 123, 456 };
const ptr: *const [2]u32 = &buf;
test/behavior/ptrcast.zig
@@ -298,8 +298,6 @@ test "comptime @ptrCast with packed struct leaves value unmodified" {
}
test "@ptrCast restructures comptime-only array" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
{
const a3a2: [3][2]comptime_int = .{
.{ 1, 2 },
@@ -342,8 +340,6 @@ test "@ptrCast restructures comptime-only array" {
}
test "@ptrCast restructures sliced comptime-only array" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
const a3a2: [4][2]comptime_int = .{
.{ 1, 2 },
.{ 3, 4 },
test/behavior/type.zig
@@ -763,8 +763,6 @@ test "matching captures causes opaque equivalence" {
}
test "reify enum where fields refers to part of array" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
const fields: [3]std.builtin.Type.EnumField = .{
.{ .name = "foo", .value = 0 },
.{ .name = "bar", .value = 1 },
test/behavior/union.zig
@@ -2373,6 +2373,7 @@ test "signed enum tag with negative value" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
const Enum = enum(i8) {
a = -1,