]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs
rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all
[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 }