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:
parent
31d4fe37f6
commit
ca0d3cae5c
12
src/test/run-fail/unwind-interleaved.rs
Normal file
12
src/test/run-fail/unwind-interleaved.rs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// error-pattern:fail
|
||||||
|
|
||||||
|
fn a() { }
|
||||||
|
|
||||||
|
fn b() { fail; }
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let x = [0];
|
||||||
|
a();
|
||||||
|
let y = [0];
|
||||||
|
b();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user