1
Fork 0

Add -Zcross-crate-inline-threshold=yes

This commit is contained in:
Ben Kimock 2023-11-06 19:55:05 -05:00
parent aea82b268a
commit fcdd99edca
10 changed files with 161 additions and 13 deletions

View file

@ -0,0 +1,13 @@
// 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()
}