2023-06-08 09:18:34 +02:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-06-04 20:21:00 -04:00
|
|
|
// compile-flags: -Zinline-mir-hint-threshold=1000
|
2021-01-25 09:34:33 +00:00
|
|
|
|
2021-01-23 13:49:20 +00:00
|
|
|
// EMIT_MIR cycle.f.Inline.diff
|
2020-12-29 16:21:52 +00:00
|
|
|
#[inline(always)]
|
|
|
|
fn f(g: impl Fn()) {
|
|
|
|
g();
|
|
|
|
}
|
|
|
|
|
2021-01-23 13:49:20 +00:00
|
|
|
// EMIT_MIR cycle.g.Inline.diff
|
2020-12-29 16:21:52 +00:00
|
|
|
#[inline(always)]
|
|
|
|
fn g() {
|
|
|
|
f(main);
|
|
|
|
}
|
|
|
|
|
2021-01-23 13:49:20 +00:00
|
|
|
// EMIT_MIR cycle.main.Inline.diff
|
2020-12-29 16:21:52 +00:00
|
|
|
fn main() {
|
|
|
|
f(g);
|
|
|
|
}
|