diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-01 23:31:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-01 23:31:52 -0500 |
| commit | 6b7ad22981867cbf6ec40d540f5571f276d6801b (patch) | |
| tree | 4c1665cf0c03fcaa5d6c2a09aa49c49f5b804236 /test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig | |
| parent | e712d5f03e6e3ddde6a4a6f7d2d82e786efd543a (diff) | |
| parent | 629c3108aa71f94bd26dba8d4f20c9f3a3945bd4 (diff) | |
| download | zig-6b7ad22981867cbf6ec40d540f5571f276d6801b.tar.gz zig-6b7ad22981867cbf6ec40d540f5571f276d6801b.zip | |
Merge pull request #14477 from Vexu/fixes
Improve `@ptrCast` errors, fix some bugs
Diffstat (limited to 'test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig')
| -rw-r--r-- | test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig b/test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig index 9cc5ed3a42..242454e859 100644 --- a/test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig +++ b/test/cases/compile_errors/increase_pointer_alignment_in_ptrCast.zig @@ -11,3 +11,4 @@ export fn entry() u32 { // :3:17: error: cast increases pointer alignment // :3:32: note: '*u8' has alignment '1' // :3:26: note: '*u32' has alignment '4' +// :3:17: note: consider using '@alignCast' |
