Add another unwind test

This makes sure that cleanups added after the first invoke in a scope are
actually run on unwind
This commit is contained in:
Brian Anderson 2011-09-14 09:21:28 -07:00
parent 31d4fe37f6
commit ca0d3cae5c

View File

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