riscv: mutable globals

This commit is contained in:
David Rubin
2024-04-14 15:07:02 -07:00
parent d9e0cafe64
commit a615fbc1f8
4 changed files with 44 additions and 14 deletions

View File

@@ -67,7 +67,6 @@ var g2: i32 = 0;
test "global variables" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
try expect(g2 == 0);
g2 = g1;