]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/const_prop/boxes.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / const_prop / boxes.rs
CommitLineData
e74abb32
XL
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
ba9703b0 10// EMIT_MIR rustc.main.ConstProp.diff
e74abb32
XL
11fn main() {
12 let x = *(box 42) + 0;
13}