From f7b67944cd593d84e99977d84e12bd2bf77a9da3 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Tue, 20 Sep 2011 20:00:34 -0700 Subject: [PATCH] Add another testcase for #910 --- src/test/run-fail/unwind-resource-fail3.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/run-fail/unwind-resource-fail3.rs diff --git a/src/test/run-fail/unwind-resource-fail3.rs b/src/test/run-fail/unwind-resource-fail3.rs new file mode 100644 index 000000000000..834c3ff78211 --- /dev/null +++ b/src/test/run-fail/unwind-resource-fail3.rs @@ -0,0 +1,11 @@ +// error-pattern:quux +// xfail-test + +resource faily_box(_i: @int) { + // What happens to the box pointer owned by this resource? + fail "quux"; +} + +fn main() { + faily_box(@10); +}