]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/const_prop_fails_gracefully.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / mir-opt / const_prop / const_prop_fails_gracefully.rs
1 // unit-test: ConstProp
2 #[inline(never)]
3 fn read(_: usize) { }
4
5 // EMIT_MIR const_prop_fails_gracefully.main.ConstProp.diff
6 fn main() {
7     const FOO: &i32 = &1;
8     let x = FOO as *const i32 as usize;
9     read(x);
10 }