rust/tests/codegen/cross-crate-inlining/always-inline.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
266 B
Rust
Raw Normal View History

2023-11-07 00:55:05 +00:00
//@ compile-flags: -O
//@ 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()
}