diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-08 13:49:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-08 13:49:29 -0500 |
| commit | 6ffa44554ef70dea9e4e58e0c8a4733be7c939b3 (patch) | |
| tree | c73fb2939c8861133f27cf16f1fb5045e60f5468 /test/behavior/bugs | |
| parent | e3c2cc1443490973b5038e7ce4e347ad1df9b678 (diff) | |
| parent | 8f037db88552b5171807d4a9f8be6e8942aab8a1 (diff) | |
| download | zig-6ffa44554ef70dea9e4e58e0c8a4733be7c939b3.tar.gz zig-6ffa44554ef70dea9e4e58e0c8a4733be7c939b3.zip | |
Merge pull request #11079 from Vexu/stage2
stage2: make references to const allocs const
Diffstat (limited to 'test/behavior/bugs')
| -rw-r--r-- | test/behavior/bugs/5474.zig | 2 | ||||
| -rw-r--r-- | test/behavior/bugs/718.zig | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/behavior/bugs/5474.zig b/test/behavior/bugs/5474.zig index 937cfc160c..62d7a52a3f 100644 --- a/test/behavior/bugs/5474.zig +++ b/test/behavior/bugs/5474.zig @@ -54,8 +54,6 @@ test "pointer-to-array constness for zero-size elements, var" { } test "pointer-to-array constness for zero-size elements, const" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - try constant(); comptime try constant(); } diff --git a/test/behavior/bugs/718.zig b/test/behavior/bugs/718.zig index 078c3604ee..a441b38ef7 100644 --- a/test/behavior/bugs/718.zig +++ b/test/behavior/bugs/718.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); const mem = std.mem; const expect = std.testing.expect; const Keys = struct { @@ -9,6 +10,10 @@ const Keys = struct { }; var keys: Keys = undefined; test "zero keys with @memset" { + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO + @memset(@ptrCast([*]u8, &keys), 0, @sizeOf(@TypeOf(keys))); try expect(!keys.up); try expect(!keys.down); |
