summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/derefer_inline_test.rs
blob: 713c051f44ad2026d1ef2a7dbe3b753010a9963f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// skip-filecheck
// 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());
}