Skip to content

Commit

Permalink
Ignore the layout.h test
Browse files Browse the repository at this point in the history
This is done because bindgen is producing bogus code where a single
struct has both `packed` and `align` attributes.
  • Loading branch information
pvdrz committed Nov 28, 2024
1 parent 923fed2 commit 3ac14ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 69 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ release = false
[profile.dist]
inherits = "release"
lto = "thin"

70 changes: 1 addition & 69 deletions bindgen-tests/tests/expectations/tests/layout.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions bindgen-tests/tests/headers/layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
//
// FIXME: https://github.com/rust-lang/rust-bindgen/issues/1498


#if 0
struct header
{
char proto;
unsigned int size __attribute__ ((packed));
unsigned char data[] __attribute__ ((aligned(8)));
} __attribute__ ((aligned, packed));
#endif

0 comments on commit 3ac14ed

Please sign in to comment.