]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / mir-opt / const_prop / const_prop_fails_gracefully.rs
1 #[inline(never)]
2 fn read(_: usize) { }
3
4 // EMIT_MIR const_prop_fails_gracefully.main.ConstProp.diff
5 fn main() {
6     const FOO: &i32 = &1;
7     let x = FOO as *const i32 as usize;
8     read(x);
9 }