rust/tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
326 B
Rust
Raw Normal View History

// skip-filecheck
//@ test-mir-pass: SimplifyLocals-before-const-prop
fn map(x: Option<Box<()>>) -> Option<Box<()>> {
match x {
None => None,
Some(x) => Some(x),
}
}
fn main() {
map(None);
}
2022-12-04 19:20:55 +00:00
// EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff