about summary refs log tree commit diff
path: root/tests/codegen/cross-crate-inlining/always-inline.rs
blob: df28b3fe197cd4c8abe5cd7f1a6006d1456350fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ compile-flags: -Copt-level=3
//@ aux-build:always.rs

#![crate_type = "lib"]

extern crate always;

// Check that we inline a cross-crate call, even though it isn't a leaf
#[no_mangle]
pub fn outer() -> String {
    // CHECK-NOT: call {{.*}}stem_fn
    always::stem_fn()
}