]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/inline/inline-retag.rs
Rollup merge of #99084 - RalfJung:write_bytes, r=thomcc
[rust.git] / src / test / mir-opt / inline / inline-retag.rs
1 // compile-flags: -Z span_free_formats -Z mir-emit-retag
2
3 // Tests that MIR inliner fixes up `Retag`'s `fn_entry` flag
4
5 fn main() {
6     println!("{}", bar());
7 }
8
9 // EMIT_MIR inline_retag.bar.Inline.after.mir
10 fn bar() -> bool {
11     let f = foo;
12     f(&1, &-1)
13 }
14
15 #[inline(always)]
16 fn foo(x: &i32, y: &i32) -> bool {
17     *x == *y
18 }