]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs
Interpret aggregates.
[rust.git] / tests / mir-opt / simplify_locals_removes_unused_discriminant_reads.rs
1 // unit-test: SimplifyLocals-before-const-prop
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 simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff