]>
Commit | Line | Data |
---|---|---|
1 | //@ compile-flags: -C no-prepopulate-passes | |
2 | ||
3 | #![crate_type = "lib"] | |
4 | use std::marker::PhantomData; | |
5 | ||
6 | #[derive(Copy, Clone)] | |
7 | struct Zst { | |
8 | phantom: PhantomData<Zst>, | |
9 | } | |
10 | ||
11 | // CHECK-LABEL: @mir | |
12 | // CHECK-NOT: store{{.*}}undef | |
13 | #[no_mangle] | |
14 | pub fn mir() { | |
15 | let x = Zst { phantom: PhantomData }; | |
16 | let y = (x, 0); | |
17 | drop(y); | |
18 | drop((0, x)); | |
19 | } |