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

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

14 lines
261 B
Rust
Raw Normal View History

2023-11-06 18:55:05 -06:00
// compile-flags: -O
// aux-build:never.rs
#![crate_type = "lib"]
extern crate never;
// Check that we do not inline a cross-crate call, even though it is a leaf
#[no_mangle]
pub fn outer() -> String {
// CHECK: call {{.*}}leaf_fn
never::leaf_fn()
}