2023-07-22 16:22:21 +00:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-04-26 01:09:36 +00:00
|
|
|
// unit-test: Inline
|
|
|
|
// compile-flags: --crate-type=lib
|
|
|
|
|
|
|
|
// EMIT_MIR inline_box_fn.call.Inline.diff
|
|
|
|
fn call(x: Box<dyn Fn(i32)>) {
|
2023-10-20 11:24:38 -07:00
|
|
|
// CHECK-LABEL: fn call(
|
2023-10-22 09:27:43 -07:00
|
|
|
// CHECK-NOT: inlined
|
2023-04-26 01:09:36 +00:00
|
|
|
x(1);
|
|
|
|
}
|