]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / mir-opt / simplify-locals-removes-unused-discriminant-reads.rs
1 // compile-flags: -Zunsound-mir-opts
2
3 fn map(x: Option<Box<()>>) -> Option<Box<()>> {
4     match x {
5         None => None,
6         Some(x) => Some(x),
7     }
8 }
9
10 fn main() {
11     map(None);
12 }
13
14 // EMIT_MIR_FOR_EACH_BIT_WIDTH
15 // EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff