authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-24 18:21:34-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-24 18:21:34-07:00
log60af42705d62417c73a13481e60b0861423e77fe
tree2edb8dc62d3071768f56696f6692c1add315a6ba
parenta4ff94804cfcdee49fb9c70812c15ff7d2829ee5

mark two behavior tests as passing


1 files changed, 0 insertions(+), 4 deletions(-)

test/behavior/eval.zig-4
...@@ -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}
647647
648test "comptime function with mutable pointer is not memoized" {648test "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}
663661
664test "const ptr to comptime mutable data is not memoized" {662test "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);