diff options
| author | David Rubin <daviru007@icloud.com> | 2024-04-16 18:48:33 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-05-11 02:17:24 -0700 |
| commit | 2fd83d8c0a8dd28c2474b26ead8cb24d6bde0901 (patch) | |
| tree | c3293e36e9233a9c9e7ce4b4d56677173662ae9e /test/behavior/struct.zig | |
| parent | a30af172e8dc360cb0a71a5c4dfd904120555715 (diff) | |
| download | zig-2fd83d8c0a8dd28c2474b26ead8cb24d6bde0901.tar.gz zig-2fd83d8c0a8dd28c2474b26ead8cb24d6bde0901.zip | |
riscv: by-value structs + `@min`
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index dceac36c97..d0509e308e 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -176,7 +176,6 @@ const MemberFnTestFoo = struct { test "call member function directly" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; const instance = MemberFnTestFoo{ .x = 1234 }; const result = MemberFnTestFoo.member(instance); @@ -185,7 +184,6 @@ test "call member function directly" { test "store member function in variable" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; const instance = MemberFnTestFoo{ .x = 1234 }; const memberFn = MemberFnTestFoo.member; @@ -1561,7 +1559,6 @@ test "discarded struct initialization works as expected" { test "function pointer in struct returns the struct" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; const A = struct { const A = @This(); @@ -1784,8 +1781,6 @@ fn countFields(v: anytype) usize { } test "struct init with no result pointer sets field result types" { - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; - const S = struct { // A function parameter has a result type, but no result pointer. fn f(s: struct { x: u32 }) u32 { @@ -1933,8 +1928,6 @@ test "circular dependency through pointer field of a struct" { } test "field calls do not force struct field init resolution" { - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; - const S = struct { x: u32 = blk: { _ = @TypeOf(make().dummyFn()); // runtime field call - S not fully resolved - dummyFn call should not force field init resolution |
