Commit 1b5b444
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 1b5b444
File tree
3 files changed
+162
-1
lines changed- bindgen-tests/tests
- expectations/tests
- headers
- bindgen/ir
3 files changed
+162
-1
lines changedLines 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 | 1754 | | |
1755 | 1755 | | |
1756 | 1756 | | |
| |||
0 commit comments