diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-24 22:27:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-24 22:28:37 -0700 |
| commit | 27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf (patch) | |
| tree | 83cd40198ef1f55946163766a04fe9202a510206 /test/behavior/eval.zig | |
| parent | adb746a7017ba6f91974d5e940bc8a8f64bb45f5 (diff) | |
| download | zig-27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf.tar.gz zig-27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf.zip | |
Sema: implement tupleFieldVal, fix comptime elem_ptr
Diffstat (limited to 'test/behavior/eval.zig')
| -rw-r--r-- | test/behavior/eval.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/behavior/eval.zig b/test/behavior/eval.zig index 40e2377aea..a3313011a3 100644 --- a/test/behavior/eval.zig +++ b/test/behavior/eval.zig @@ -553,8 +553,6 @@ var simple_struct = SimpleStruct{ .field = 1234 }; const bound_fn = simple_struct.method; test "ptr to local array argument at comptime" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - comptime { var bytes: [10]u8 = undefined; modifySomeBytes(bytes[0..]); @@ -591,8 +589,6 @@ fn testCompTimeUIntComparisons(x: u32) void { const hi1 = "hi"; const hi2 = hi1; test "const global shares pointer with other same one" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - try assertEqualPtrs(&hi1[0], &hi2[0]); comptime try expect(&hi1[0] == &hi2[0]); } @@ -704,7 +700,7 @@ fn loopNTimes(comptime n: usize) void { } test "variable inside inline loop that has different types on different iterations" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO try testVarInsideInlineLoop(.{ true, @as(u32, 42) }); } |
