Skip to content

Commit

Permalink
add a test case for issue #2695
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui authored and emilio committed Jan 12, 2024
1 parent 5ac0381 commit 5dd7648
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
45 changes: 45 additions & 0 deletions bindgen-tests/tests/expectations/tests/issue-2695.rs

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

10 changes: 10 additions & 0 deletions bindgen-tests/tests/headers/issue-2695.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// bindgen-flags: --explicit-padding

#pragma pack(2)

struct Test {
unsigned long x;
char a;
char b;
char c;
};

0 comments on commit 5dd7648

Please sign in to comment.