2023-07-22 11:22:21 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-04-25 20:09:36 -05: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 13:24:38 -05:00
|
|
|
// CHECK-LABEL: fn call(
|
2023-10-22 11:27:43 -05:00
|
|
|
// CHECK-NOT: inlined
|
2023-04-25 20:09:36 -05:00
|
|
|
x(1);
|
|
|
|
}
|