summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/boxes.rs
blob: d287830db5a56ed86aa83c6ca6a440e9e590ee99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// unit-test: ConstProp
// compile-flags: -O
// ignore-emscripten compiled with panic=abort by default
// ignore-wasm32
// ignore-wasm64

#![feature(box_syntax)]

// Note: this test verifies that we, in fact, do not const prop `box`

// EMIT_MIR boxes.main.ConstProp.diff
fn main() {
    let x = *(box 42) + 0;
}