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

#[rustc_force_inline]
pub fn callee_forced() {}

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