os-rust/tests/mir-opt/const_prop/ref_deref.rs

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

10 lines
193 B
Rust
Raw Normal View History

//@ test-mir-pass: GVN
2020-04-04 17:15:01 +00:00
2023-09-20 21:43:33 +00:00
// EMIT_MIR ref_deref.main.GVN.diff
fn main() {
2023-12-02 20:58:35 +00:00
// CHECK-LABEL: fn main(
// CHECK: debug a => [[a:_.*]];
2023-09-20 21:43:33 +00:00
// CHECK: [[a]] = const 4_i32;
2023-12-02 20:58:35 +00:00
let a = *(&4);
}