1 // This test makes sure that the generator MIR pass eliminates all calls to
2 // `get_context`, and that the MIR argument type for an async fn and all locals
3 // related to `yield` are `&mut Context`, and its return type is `Poll`.
6 // compile-flags: -C panic=abort
10 // EMIT_MIR async_await.a-{closure#0}.generator_resume.0.mir
13 // EMIT_MIR async_await.b-{closure#0}.generator_resume.0.mir