]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }