aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/ptrfromint.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-05-25 22:52:26 -0700
committerDavid Rubin <daviru007@icloud.com>2024-06-13 02:22:33 -0700
commita270c6f8c82bc81eecf37cc06a326e46ed44fb8b (patch)
tree6ee1ab61e42d94d92eaeb62ee7b371d64de2e9a7 /test/behavior/ptrfromint.zig
parentd69c48370a0381c7dce463c68b2097dd8fa67eb7 (diff)
downloadzig-a270c6f8c82bc81eecf37cc06a326e46ed44fb8b.tar.gz
zig-a270c6f8c82bc81eecf37cc06a326e46ed44fb8b.zip
riscv: implement optional logic
Diffstat (limited to 'test/behavior/ptrfromint.zig')
-rw-r--r--test/behavior/ptrfromint.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/ptrfromint.zig b/test/behavior/ptrfromint.zig
index 0ff54c9416..89706be891 100644
--- a/test/behavior/ptrfromint.zig
+++ b/test/behavior/ptrfromint.zig
@@ -34,7 +34,6 @@ test "@ptrFromInt creates null pointer" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
const ptr = @as(?*u32, @ptrFromInt(0));
try expectEqual(@as(?*u32, null), ptr);