summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/derefer_inline_test.rs
blob: 7ac330e51025e809aee9201e9b4b155737228636 (plain)
1
2
3
4
5
6
7
8
9
10
11
// unit-test: Derefer
// EMIT_MIR derefer_inline_test.main.Derefer.diff
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY

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