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

#[rustc_force_inline]
pub fn callee_forced() {}

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