From ad2bdbee088ed2b892903c6a7519c92aa2f2068d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 14 Sep 2011 10:59:17 -0700 Subject: [PATCH] Add another XFAILed test for failing destructors --- src/test/run-fail/unwind-resource-fail2.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/run-fail/unwind-resource-fail2.rs diff --git a/src/test/run-fail/unwind-resource-fail2.rs b/src/test/run-fail/unwind-resource-fail2.rs new file mode 100644 index 00000000000..5c90bc6b4ed --- /dev/null +++ b/src/test/run-fail/unwind-resource-fail2.rs @@ -0,0 +1,13 @@ +// error-pattern:fail +// xfail-test + +resource r(i: int) { + // Double-fail!! + fail; +} + +fn main() { + @0; + let r <- r(0); + fail; +} \ No newline at end of file