Commit e99a9fc
Dan Robertson
Allow zero sized unions to be defined
A union may be defined in C that contains only zero sized types. We
should in turn generate a rust union in this case.1 parent b7b501f commit e99a9fc
3 files changed
Lines changed: 164 additions & 1 deletion
File tree
- bindgen-tests/tests
- expectations/tests
- headers
- bindgen/ir
Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
1753 | | - | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1754 | 1756 | | |
1755 | 1757 | | |
1756 | 1758 | | |
| |||
0 commit comments