rust/tests/mir-opt/coroutine_drop_cleanup.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
365 B
Rust
Raw Normal View History

// skip-filecheck
2023-10-19 16:46:28 -05:00
#![feature(coroutines, coroutine_trait)]
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2023-10-19 16:46:28 -05:00
// Regression test for #58892, coroutine drop shims should not have blocks
// spuriously marked as cleanup
2023-10-19 16:46:28 -05:00
// EMIT_MIR coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.mir
fn main() {
let gen = || {
let _s = String::new();
yield;
};
}