2021-01-25 03:34:33 -06:00
|
|
|
// ignore-wasm32-bare compiled with panic=abort by default
|
|
|
|
|
2021-01-23 07:49:20 -06:00
|
|
|
// EMIT_MIR cycle.f.Inline.diff
|
2020-12-29 10:21:52 -06:00
|
|
|
#[inline(always)]
|
|
|
|
fn f(g: impl Fn()) {
|
|
|
|
g();
|
|
|
|
}
|
|
|
|
|
2021-01-23 07:49:20 -06:00
|
|
|
// EMIT_MIR cycle.g.Inline.diff
|
2020-12-29 10:21:52 -06:00
|
|
|
#[inline(always)]
|
|
|
|
fn g() {
|
|
|
|
f(main);
|
|
|
|
}
|
|
|
|
|
2021-01-23 07:49:20 -06:00
|
|
|
// EMIT_MIR cycle.main.Inline.diff
|
2020-12-29 10:21:52 -06:00
|
|
|
fn main() {
|
|
|
|
f(g);
|
|
|
|
}
|