rust/src/test/run-fail/unwind-interleaved.rs
Brian Anderson ca0d3cae5c Add another unwind test
This makes sure that cleanups added after the first invoke in a scope are
actually run on unwind
2011-09-14 09:21:28 -07:00

12 lines
118 B
Rust

// error-pattern:fail
fn a() { }
fn b() { fail; }
fn main() {
let x = [0];
a();
let y = [0];
b();
}