]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/boxes.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / mir-opt / const_prop / boxes.rs
1 // unit-test: ConstProp
2 // compile-flags: -O
3 // ignore-emscripten compiled with panic=abort by default
4 // ignore-wasm32
5 // ignore-wasm64
6
7 #![feature(box_syntax)]
8
9 // Note: this test verifies that we, in fact, do not const prop `box`
10
11 // EMIT_MIR boxes.main.ConstProp.diff
12 fn main() {
13     let x = *(box 42) + 0;
14 }