]> git.proxmox.com Git - rustc.git/blame - tests/codegen/mir_zst_stores.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / codegen / mir_zst_stores.rs
CommitLineData
9cc50fc6 1// compile-flags: -C no-prepopulate-passes
85aaf69f 2
9cc50fc6
SL
3#![crate_type = "lib"]
4use std::marker::PhantomData;
62682a34 5
041b39d2 6#[derive(Copy, Clone)]
9cc50fc6 7struct Zst { phantom: PhantomData<Zst> }
223e47cc 8
9cc50fc6 9// CHECK-LABEL: @mir
041b39d2 10// CHECK-NOT: store{{.*}}undef
9cc50fc6 11#[no_mangle]
abe05a73 12pub fn mir() {
9cc50fc6 13 let x = Zst { phantom: PhantomData };
041b39d2
XL
14 let y = (x, 0);
15 drop(y);
16 drop((0, x));
9cc50fc6 17}