]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/derefer_terminator_test.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[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 }