summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/boxes.rs
blob: d45804ebb6cf29b1a57b878d58195f88a97b271c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 rustc.main.ConstProp.diff
fn main() {
    let x = *(box 42) + 0;
}