summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/derefer_inline_test.rs
blob: 38311d4d01fb2c670e194382ddfbc7a29392e732 (plain)
1
2
3
4
5
6
7
8
9
10
11
// unit-test: Derefer
// EMIT_MIR derefer_inline_test.main.Derefer.diff
// ignore-wasm32 compiled with panic=abort by default

#[inline]
fn f() -> Box<u32> {
    Box::new(0)
}
fn main() {
    Box::new(f());
}