diff options
Diffstat (limited to 'bindgen-tests/tests/headers/explicit-padding.h')
-rw-r--r-- | bindgen-tests/tests/headers/explicit-padding.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/explicit-padding.h b/bindgen-tests/tests/headers/explicit-padding.h new file mode 100644 index 00000000..4abaafba --- /dev/null +++ b/bindgen-tests/tests/headers/explicit-padding.h @@ -0,0 +1,17 @@ +// bindgen-flags: --explicit-padding + +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; + +struct pad_me { + uint8_t first; + uint32_t second; + uint16_t third; +}; + +union dont_pad_me { + uint8_t first; + uint32_t second; + uint16_t third; +}; |