diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-09-21 01:49:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 01:49:28 -0700 |
| commit | 010d9a63f20d8a4bd14cff0ada690b2d127a0371 (patch) | |
| tree | 12b56ddfe5a5b235ef0676832902a0b04ad7d57a /doc/langref/test_overaligned_packed_struct.zig | |
| parent | 3fbb88c4bd146ca7bd9e7ab5da9c4b05298f3b34 (diff) | |
| parent | 633162eb0c8d302ba7585cd308e01237409f042e (diff) | |
| download | zig-010d9a63f20d8a4bd14cff0ada690b2d127a0371.tar.gz zig-010d9a63f20d8a4bd14cff0ada690b2d127a0371.zip | |
Merge pull request #25154 from ziglang/no-decl-val-3
rework byval ZIR instructions; forbid runtime vector indexes
Diffstat (limited to 'doc/langref/test_overaligned_packed_struct.zig')
| -rw-r--r-- | doc/langref/test_overaligned_packed_struct.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref/test_overaligned_packed_struct.zig b/doc/langref/test_overaligned_packed_struct.zig index b739b0d407..8bf52b3297 100644 --- a/doc/langref/test_overaligned_packed_struct.zig +++ b/doc/langref/test_overaligned_packed_struct.zig @@ -8,7 +8,7 @@ const S = packed struct { test "overaligned pointer to packed struct" { var foo: S align(4) = .{ .a = 1, .b = 2 }; const ptr: *align(4) S = &foo; - const ptr_to_b: *u32 = &ptr.b; + const ptr_to_b = &ptr.b; try expect(ptr_to_b.* == 2); } |
