diff options
| author | Jesse Ruderman <jruderman@gmail.com> | 2011-09-20 20:00:34 -0700 |
|---|---|---|
| committer | Jesse Ruderman <jruderman@gmail.com> | 2011-09-20 20:00:34 -0700 |
| commit | f7b67944cd593d84e99977d84e12bd2bf77a9da3 (patch) | |
| tree | b96ef095ded42733fdebec352b65c6d44e7e5372 | |
| parent | 01ea88019606f1d2a5d18c0c633999a1df4d82d1 (diff) | |
| download | rust-f7b67944cd593d84e99977d84e12bd2bf77a9da3.tar.gz rust-f7b67944cd593d84e99977d84e12bd2bf77a9da3.zip | |
Add another testcase for #910
| -rw-r--r-- | src/test/run-fail/unwind-resource-fail3.rs | 11 |
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); +} |
