diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-05-13 12:52:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-13 12:52:16 +0300 |
| commit | 68bacad8047df050c8ab6bf52c2921f482647d57 (patch) | |
| tree | 9b428c397ee0173b670dfbe34f4c9330dc257bb7 /test/behavior/array.zig | |
| parent | 6f418c11e1ad1150fbdb002cfe1be92bda4e93cb (diff) | |
| parent | 5aa9628de3c6637f45b9d8cf8cbd19c422a74f6f (diff) | |
| download | zig-68bacad8047df050c8ab6bf52c2921f482647d57.tar.gz zig-68bacad8047df050c8ab6bf52c2921f482647d57.zip | |
Merge pull request #15643 from Vexu/fixes
make `@call` compile errors match regular calls
Diffstat (limited to 'test/behavior/array.zig')
| -rw-r--r-- | test/behavior/array.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/array.zig b/test/behavior/array.zig index fec8a7ac8a..b4754a59a4 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -696,7 +696,7 @@ test "array init of container level array variable" { test "runtime initialized sentinel-terminated array literal" { var c: u16 = 300; const f = &[_:0x9999]u16{c}; - const g = @ptrCast(*[4]u8, f); + const g = @ptrCast(*const [4]u8, f); try std.testing.expect(g[2] == 0x99); try std.testing.expect(g[3] == 0x99); } |
