Skip to content

Commit a31110d

Browse files
committed
add a test case for issue #2695
1 parent 3cfdb4b commit a31110d

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

bindgen-tests/tests/expectations/tests/issue-2695.rs

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// bindgen-flags: --explicit-padding
2+
3+
#pragma pack(2)
4+
5+
struct Test {
6+
unsigned long x;
7+
char a;
8+
char b;
9+
char c;
10+
};

0 commit comments

Comments
 (0)