]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/derefer_terminator_test.rs
Auto merge of #107667 - cjgillot:no-on-hit, r=lcnr,Zoxc
[rust.git] / tests / mir-opt / derefer_terminator_test.rs
1 // unit-test: Derefer
2 // EMIT_MIR derefer_terminator_test.main.Derefer.diff
3 // ignore-wasm32
4
5 fn main() {
6     let b = foo();
7     let d = foo();
8     match ****(&&&&b) {
9         true => {let x = 5;},
10         false => {}
11     }
12     let y = 42;
13 }
14
15 fn foo() -> bool {
16     true
17 }