2016-01-12 08:36:47 -06:00
|
|
|
// compile-flags: -C no-prepopulate-passes
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
2017-06-06 13:13:13 -05:00
|
|
|
#[derive(Copy, Clone)]
|
2016-01-12 08:36:47 -06:00
|
|
|
struct Zst { phantom: PhantomData<Zst> }
|
|
|
|
|
|
|
|
// CHECK-LABEL: @mir
|
2017-06-06 13:13:13 -05:00
|
|
|
// CHECK-NOT: store{{.*}}undef
|
2016-01-12 08:36:47 -06:00
|
|
|
#[no_mangle]
|
2017-10-30 12:18:00 -05:00
|
|
|
pub fn mir() {
|
2016-01-12 08:36:47 -06:00
|
|
|
let x = Zst { phantom: PhantomData };
|
2017-06-06 13:13:13 -05:00
|
|
|
let y = (x, 0);
|
|
|
|
drop(y);
|
|
|
|
drop((0, x));
|
2016-01-12 08:36:47 -06:00
|
|
|
}
|