| ... | ... | @@ -2846,7 +2846,7 @@ test "pointer to non-bit-aligned field" { |
| 2846 | 2846 | Zig should correctly understand the alignment of fields. However there is |
| 2847 | 2847 | <a href="https://github.com/ziglang/zig/issues/1994">a bug</a>: |
| 2848 | 2848 | </p> |
| 2849 | | {#code_begin|test_err#} |
| 2849 | {#code_begin|test_err|expected type '*u32', found '*align(1) u32'#} |
| 2850 | 2850 | const S = packed struct { |
| 2851 | 2851 | a: u32, |
| 2852 | 2852 | b: u32, |
| ... | ... | @@ -2855,6 +2855,7 @@ test "overaligned pointer to packed struct" { |
| 2855 | 2855 | var foo: S align(4) = undefined; |
| 2856 | 2856 | const ptr: *align(4) S = &foo; |
| 2857 | 2857 | const ptr_to_b: *u32 = &ptr.b; |
| 2858 | _ = ptr_to_b; |
| 2858 | 2859 | } |
| 2859 | 2860 | {#code_end#} |
| 2860 | 2861 | <p>When this bug is fixed, the above test in the documentation will unexpectedly pass, which will |