FileCheck unsized_argument

This commit is contained in:
Ryan Mehri 2023-10-20 22:21:03 -07:00
parent 6e047c07a6
commit 3faf05b6e7

View File

@ -1,4 +1,3 @@
// skip-filecheck
// needs-unwind
#![feature(unsized_fn_params)]
@ -7,6 +6,8 @@ fn callee(y: [i32]) {}
// EMIT_MIR unsized_argument.caller.Inline.diff
fn caller(x: Box<[i32]>) {
// CHECK-LABEL: fn caller(
// CHECK-NOT: (inlined callee)
callee(*x);
}