2023-06-08 02:18:34 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2017-11-26 12:39:16 -06:00
|
|
|
|
2022-09-05 00:35:47 -05:00
|
|
|
|
2020-07-27 14:22:43 -05:00
|
|
|
// EMIT_MIR packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir
|
2017-10-03 09:01:01 -05:00
|
|
|
fn main() {
|
|
|
|
let mut x = Packed(Aligned(Droppy(0)));
|
|
|
|
x.0 = Aligned(Droppy(0));
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Aligned(Droppy);
|
|
|
|
#[repr(packed)]
|
|
|
|
struct Packed(Aligned);
|
|
|
|
|
|
|
|
struct Droppy(usize);
|
|
|
|
impl Drop for Droppy {
|
|
|
|
fn drop(&mut self) {}
|
|
|
|
}
|