mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
13 lines
358 B
Rust
13 lines
358 B
Rust
![]() |
// 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'
|
||
|
//
|
||
|
// aux-build:internal.rs
|
||
|
// build-pass
|
||
|
// compile-flags: -O
|
||
|
extern crate internal;
|
||
|
|
||
|
fn main() {
|
||
|
println!("{}", internal::f());
|
||
|
}
|