xref: /third_party/rust/crates/bindgen/bindgen-tests/tests/headers/explicit-padding.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
112a9d9c8Sopenharmony_ci// bindgen-flags: --explicit-padding
212a9d9c8Sopenharmony_ci
312a9d9c8Sopenharmony_citypedef unsigned char uint8_t;
412a9d9c8Sopenharmony_citypedef unsigned short uint16_t;
512a9d9c8Sopenharmony_citypedef unsigned int uint32_t;
612a9d9c8Sopenharmony_ci
712a9d9c8Sopenharmony_cistruct pad_me {
812a9d9c8Sopenharmony_ci        uint8_t first;
912a9d9c8Sopenharmony_ci        uint32_t second;
1012a9d9c8Sopenharmony_ci        uint16_t third;
1112a9d9c8Sopenharmony_ci};
1212a9d9c8Sopenharmony_ci
1312a9d9c8Sopenharmony_ciunion dont_pad_me {
1412a9d9c8Sopenharmony_ci        uint8_t first;
1512a9d9c8Sopenharmony_ci        uint32_t second;
1612a9d9c8Sopenharmony_ci        uint16_t third;
1712a9d9c8Sopenharmony_ci};
18

Indexes created Thu Nov 07 10:32:03 CST 2024