rust/tests/mir-opt/derefer_terminator_test.rs

18 lines
292 B
Rust
Raw Normal View History

// unit-test: Derefer
// EMIT_MIR derefer_terminator_test.main.Derefer.diff
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2022-07-12 08:02:17 -05:00
fn main() {
let b = foo();
let d = foo();
match ****(&&&&b) {
true => {let x = 5;},
false => {}
}
let y = 42;
}
fn foo() -> bool {
true
}