| ... | @@ -646,8 +646,6 @@ pub fn TypeWithCompTimeSlice(comptime field_name: []const u8) type { | ... | @@ -646,8 +646,6 @@ pub fn TypeWithCompTimeSlice(comptime field_name: []const u8) type { |
| 646 | } | 646 | } |
| 647 | | 647 | |
| 648 | test "comptime function with mutable pointer is not memoized" { | 648 | test "comptime function with mutable pointer is not memoized" { |
| 649 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | | |
| 650 | | | |
| 651 | comptime { | 649 | comptime { |
| 652 | var x: i32 = 1; | 650 | var x: i32 = 1; |
| 653 | const ptr = &x; | 651 | const ptr = &x; |
| ... | @@ -662,8 +660,6 @@ fn increment(value: *i32) void { | ... | @@ -662,8 +660,6 @@ fn increment(value: *i32) void { |
| 662 | } | 660 | } |
| 663 | | 661 | |
| 664 | test "const ptr to comptime mutable data is not memoized" { | 662 | test "const ptr to comptime mutable data is not memoized" { |
| 665 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | | |
| 666 | | | |
| 667 | comptime { | 663 | comptime { |
| 668 | var foo = SingleFieldStruct{ .x = 1 }; | 664 | var foo = SingleFieldStruct{ .x = 1 }; |
| 669 | try expect(foo.read_x() == 1); | 665 | try expect(foo.read_x() == 1); |