2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2024-04-20 06:19:34 -05:00
|
|
|
//@ test-mir-pass: SimplifyLocals-before-const-prop
|
2020-09-30 19:04:19 -05:00
|
|
|
|
2020-03-30 08:56:52 -05:00
|
|
|
fn map(x: Option<Box<()>>) -> Option<Box<()>> {
|
|
|
|
match x {
|
|
|
|
None => None,
|
|
|
|
Some(x) => Some(x),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
map(None);
|
|
|
|
}
|
|
|
|
|
2022-12-04 13:20:55 -06:00
|
|
|
// EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff
|