1 // compile-flags: -Z print-type-sizes
4 // This file illustrates how packing is handled; it should cause
5 // the elimination of padding that would normally be introduced
6 // to satisfy alignment desirata.
8 // It avoids using u64/i64 because on some targets that is only 4-byte
9 // aligned (while on most it is 8-byte aligned) and so the resulting
10 // padding and overall computed sizes can be quite different.
60 fn start(_: isize, _: *const *const u8) -> isize {
61 let _c: Packed1 = Default::default();
62 let _d: Packed2 = Default::default();
63 let _e: Packed2C = Default::default();
64 let _f: Padded = Default::default();