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: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()
}