diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-08-07 10:55:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 10:55:03 +0100 |
| commit | fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1 (patch) | |
| tree | 55910d5395d41c11b771c34057b1b16affafd9e2 /test/behavior/array.zig | |
| parent | 04fe1bfe3ceabd632183a85101cddeeec11f0745 (diff) | |
| parent | 7c35070b901d9181ec3c666480a91eddf6c1abce (diff) | |
| download | zig-fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1.tar.gz zig-fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1.zip | |
Merge pull request #24199 from Justus2308/24106-fmt-casts
zig fmt: canonicalize nested cast builtin order
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 07eb632b1e..1eb4c12cbf 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -1091,7 +1091,7 @@ test "initialize pointer to anyopaque with reference to empty array initializer" const ptr: *const anyopaque = &.{}; // The above acts like an untyped initializer, since the `.{}` has no result type. // So, `ptr` points in memory to an empty tuple (`@TypeOf(.{})`). - const casted: *const @TypeOf(.{}) = @alignCast(@ptrCast(ptr)); + const casted: *const @TypeOf(.{}) = @ptrCast(@alignCast(ptr)); const loaded = casted.*; // `val` should be a `@TypeOf(.{})`, as expected. // We can't check the value, but it's zero-bit, so the type matching is good enough. |
