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
#pragma pack(push) #pragma pack(1) struct S5 { signed f0 : 11; unsigned f1 : 12; unsigned f2 : 23; }; #pragma pack(pop)
$ bindgen failing.h -o failing.rs
While running bindgen we get:
ERROR:bindgen::codegen::struct_layout: Calculated wrong layout for S5, too more 2 bytes
but the output is created nonetheless:
[repr(C)] #[derive(Debug, Copy)] pub struct S5 { pub _bitfield_1: [u32; 2usize], pub __bindgen_align: [u8; 0usize], }
Then when running the tests:
---- bindgen_test_layout_S5 stdout ---- thread 'bindgen_test_layout_S5' panicked at 'assertion failed: `(left == right)` left: `8`, right: `6`: Size of: S5', failing.rs:11:4
The text was updated successfully, but these errors were encountered:
Dupe of #537. Thanks for the report!
Sorry, something went wrong.
No branches or pull requests
Input C/C++ Header
Bindgen Invocation
Actual Results
While running bindgen we get:
but the output is created nonetheless:
Then when running the tests:
Expected Results
The text was updated successfully, but these errors were encountered: