Commit 3ce949f
committed
test: add test for issue #3319 long double layout behavior
This test documents the behavior of long double type mapping across
different platforms:
- On macOS x86_64: long double is 16 bytes, mapped to u128
- On FreeBSD i386: long double is 12 bytes (x87 extended precision)
- On Linux x86_64: long double is 16 bytes
The test shows how structs with aligned fields (like max_align_t) are
handled, and documents the cross-platform type size mismatch issue
that can cause layout test failures.
Related to issue #3319: #33191 parent 5ae4b31 commit 3ce949f
2 files changed
Lines changed: 78 additions & 0 deletions
File tree
- bindgen-tests/tests
- expectations/tests
- headers
Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 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 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments