rust/tests/ui/packed/auxiliary/packed.rs
2023-01-11 09:32:08 +00:00

20 lines
208 B
Rust

#[repr(packed)]
pub struct P1S5 {
a: u8,
b: u32
}
#[repr(packed(2))]
pub struct P2S6 {
a: u8,
b: u32,
c: u8
}
#[repr(C, packed(2))]
pub struct P2CS8 {
a: u8,
b: u32,
c: u8
}