]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/boxes.rs
rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all
[rust.git] / src / test / mir-opt / const_prop / boxes.rs
1 // compile-flags: -O
2 // ignore-emscripten compiled with panic=abort by default
3 // ignore-wasm32
4 // ignore-wasm64
5
6 #![feature(box_syntax)]
7
8 // Note: this test verifies that we, in fact, do not const prop `box`
9
10 // EMIT_MIR boxes.main.ConstProp.diff
11 fn main() {
12     let x = *(box 42) + 0;
13 }