Skip to content

Commit e3f599c

Browse files
committed
Add test for simplify-try misoptimization
1 parent 9491f18 commit e3f599c

File tree

5 files changed

+1265
-0
lines changed

5 files changed

+1265
-0
lines changed

src/test/mir-opt/issue-73223.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
fn main() {
2+
let split = match Some(1) {
3+
Some(v) => v,
4+
None => return,
5+
};
6+
7+
let _prev = Some(split);
8+
assert_eq!(split, 1);
9+
}
10+
11+
// EMIT_MIR_FOR_EACH_BIT_WIDTH
12+
// EMIT_MIR rustc.main.SimplifyArmIdentity.diff
13+
// EMIT_MIR rustc.main.PreCodegen.diff

0 commit comments

Comments
 (0)