2023-08-26 19:00:00 -05:00
|
|
|
// Regression test for MIR inlining with -Zalways-encode-mir enabled in the auxiliary crate.
|
|
|
|
// Previously we inlined function not eligible for inlining which lead to linking error:
|
|
|
|
// undefined reference to `internal::S'
|
|
|
|
//
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ aux-build:internal.rs
|
|
|
|
//@ build-pass
|
|
|
|
//@ compile-flags: -O
|
2023-08-26 19:00:00 -05:00
|
|
|
extern crate internal;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("{}", internal::f());
|
|
|
|
}
|