about summary refs log tree commit diff
path: root/tests/mir-opt/inline/forced_inherent_async.rs
blob: ce58a0ac48f4716dc56eddd87ae2b9a6f4ab06d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//@ compile-flags: -Copt-level=0 --crate-type=lib
//@ edition: 2021
#![feature(rustc_attrs)]

struct Foo {}

impl Foo {
    #[rustc_force_inline]
    pub fn callee_forced() {}
}

// EMIT_MIR forced_inherent_async.caller.ForceInline.diff
async fn caller() {
    Foo::callee_forced();
    // CHECK-LABEL: fn caller(
    // CHECK: (inlined Foo::callee_forced)
}