2023-05-10 05:23:07 -05:00
|
|
|
//@ needs-unwind
|
|
|
|
#![feature(unsized_fn_params)]
|
|
|
|
|
|
|
|
#[inline(always)]
|
|
|
|
fn callee(y: [i32]) {}
|
|
|
|
|
|
|
|
// EMIT_MIR unsized_argument.caller.Inline.diff
|
|
|
|
fn caller(x: Box<[i32]>) {
|
2023-10-21 00:21:03 -05:00
|
|
|
// CHECK-LABEL: fn caller(
|
|
|
|
// CHECK-NOT: (inlined callee)
|
2023-05-10 05:23:07 -05:00
|
|
|
callee(*x);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let b = Box::new([1]);
|
|
|
|
caller(b);
|
|
|
|
}
|