mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
FileCheck unsized_argument
This commit is contained in:
parent
6e047c07a6
commit
3faf05b6e7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user