]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 XL |
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 | ||
ba9703b0 | 9 | // EMIT_MIR rustc.bar.Inline.after.mir |
a1dfa0c6 XL |
10 | fn bar() -> bool { |
11 | let f = foo; | |
12 | f(&1, &-1) | |
13 | } | |
14 | ||
9fa01778 XL |
15 | #[inline(always)] |
16 | fn foo(x: &i32, y: &i32) -> bool { | |
17 | *x == *y | |
18 | } |