We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command demonstrating abort:
$ zig test u0-packed-struct-fails.zig zig: ../src/analyze.cpp:499: ZigType* get_pointer_to_type_extra(CodeGen*, ZigType*, bool, bool, PtrLen, uint32_t, uint32_t, uint32_t): Assertion `byte_alignment == 0' failed. Aborted (core dumped)
Code here and below:
const assert = @import("std").debug.assert; // zig: ../src/analyze.cpp:499: ZigType* get_pointer_to_type_extra(CodeGen*, ZigType*, bool, bool, PtrLen, uint32_t, uint32_t, uint32_t): Assertion `byte_alignment == 0' failed. // Aborted (core dumped) test "u0-packed-struct-fails" { const S = packed struct { f0: u0, }; var s = S { .f0 = 0, }; assert(s.f0 == 0); }
The text was updated successfully, but these errors were encountered:
Simple example of packed structs with u0 fail.
5a3dace
See ziglang/zig [#1544](ziglang/zig#1554)
cbce61a
No branches or pull requests
Command demonstrating abort:
Code here and below:
The text was updated successfully, but these errors were encountered: