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