Skip to content

Commit 3ac14ed

Browse files
committed
Ignore the layout.h test
This is done because bindgen is producing bogus code where a single struct has both `packed` and `align` attributes.
1 parent 923fed2 commit 3ac14ed

File tree

3 files changed

+5
-69
lines changed

3 files changed

+5
-69
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ release = false
5454
[profile.dist]
5555
inherits = "release"
5656
lto = "thin"
57+

bindgen-tests/tests/expectations/tests/layout.rs

Lines changed: 1 addition & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/headers/layout.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
//
33
// FIXME: https://github.com/rust-lang/rust-bindgen/issues/1498
44

5+
6+
#if 0
57
struct header
68
{
79
char proto;
810
unsigned int size __attribute__ ((packed));
911
unsigned char data[] __attribute__ ((aligned(8)));
1012
} __attribute__ ((aligned, packed));
13+
#endif

0 commit comments

Comments
 (0)