diff --git a/src/test/run-pass/cleanup-copy-mode.rs b/src/test/run-pass/cleanup-copy-mode.rs new file mode 100644 index 00000000000..e66a4cd0ef5 --- /dev/null +++ b/src/test/run-pass/cleanup-copy-mode.rs @@ -0,0 +1,9 @@ +// xfail-win32 +fn adder(+x: @int, +y: @int) -> int { ret *x + *y; } +fn failer() -> @int { fail; } +fn main() { + assert(result::failure(task::try {|| + adder(@2, failer()); () + })); +} +