2019-10-18 14:47:54 -07:00
|
|
|
// ignore-wasm32-bare compiled with panic=abort by default
|
2017-11-26 10:39:16 -08:00
|
|
|
|
2020-04-04 20:25:54 +00:00
|
|
|
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
2020-04-02 21:09:01 +00:00
|
|
|
// EMIT_MIR rustc.main.SimplifyCfg-elaborate-drops.after.mir
|
2017-10-03 16:01:01 +02: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) {}
|
|
|
|
}
|