about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJesse Ruderman <jruderman@gmail.com>2011-09-20 20:00:34 -0700
committerJesse Ruderman <jruderman@gmail.com>2011-09-20 20:00:34 -0700
commitf7b67944cd593d84e99977d84e12bd2bf77a9da3 (patch)
treeb96ef095ded42733fdebec352b65c6d44e7e5372
parent01ea88019606f1d2a5d18c0c633999a1df4d82d1 (diff)
downloadrust-f7b67944cd593d84e99977d84e12bd2bf77a9da3.tar.gz
rust-f7b67944cd593d84e99977d84e12bd2bf77a9da3.zip
Add another testcase for #910
-rw-r--r--src/test/run-fail/unwind-resource-fail3.rs11
1 files changed, 11 insertions, 0 deletions
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 00000000000..834c3ff7821
--- /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);
+}