2025-03-16 20:23:22 +00:00
|
|
|
#![no_std]
|
|
|
|
|
|
2025-03-04 22:02:06 +00:00
|
|
|
//@ is "$.index[?(@.name=='ReprCStruct')].attrs" '["#[repr(C)]"]'
|
2025-03-16 20:23:22 +00:00
|
|
|
#[repr(C)]
|
|
|
|
|
pub struct ReprCStruct(pub i64);
|
|
|
|
|
|
2025-03-04 22:02:06 +00:00
|
|
|
//@ is "$.index[?(@.name=='ReprCEnum')].attrs" '["#[repr(C)]"]'
|
2025-03-16 20:23:22 +00:00
|
|
|
#[repr(C)]
|
|
|
|
|
pub enum ReprCEnum {
|
|
|
|
|
First,
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-04 22:02:06 +00:00
|
|
|
//@ is "$.index[?(@.name=='ReprCUnion')].attrs" '["#[repr(C)]"]'
|
2025-03-16 20:23:22 +00:00
|
|
|
#[repr(C)]
|
|
|
|
|
pub union ReprCUnion {
|
|
|
|
|
pub left: i64,
|
|
|
|
|
pub right: u64,
|
|
|
|
|
}
|