about summary refs log tree commit diff
path: root/tests/ui/mir/mir-inlining/always-encode-mirs.rs
blob: 4553560baaa64fc29d9cf542ba87b0a0bd9db5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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());
}