mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
58f8739d55
MIR dumped before/after the dummy `PreCodegen` pass should be identical to MIR dumped after the phase transition to `runtime-optimized`.
18 lines
395 B
Rust
18 lines
395 B
Rust
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
#![crate_type = "lib"]
|
|
#![feature(rustc_attrs)]
|
|
|
|
//@ compile-flags: -Zmir-opt-level=2 -Zinline-mir
|
|
|
|
#[inline]
|
|
#[rustc_no_mir_inline]
|
|
pub fn callee() {}
|
|
|
|
// EMIT_MIR rustc_no_mir_inline.caller.Inline.diff
|
|
// EMIT_MIR rustc_no_mir_inline.caller.runtime-optimized.after.mir
|
|
pub fn caller() {
|
|
// CHECK-LABEL: fn caller(
|
|
// CHECK: callee()
|
|
callee();
|
|
}
|