summary refs log tree commit diff
path: root/src/test/run-fail
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-20 11:26:01 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-20 11:26:01 -0700
commit564bdacecebd25e314c6785d7fff601b12c8e10f (patch)
tree8e7c88950d63a716c173a2dcf102d71c0a023940 /src/test/run-fail
parentde1b394c322a14b46724428d590089ee03b53dc8 (diff)
downloadrust-564bdacecebd25e314c6785d7fff601b12c8e10f.tar.gz
rust-564bdacecebd25e314c6785d7fff601b12c8e10f.zip
Add an assert to run-fail/unwind-alt
Jesse reported not being able to reproduce this without the assert. May have
to do with optimtizations.
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/unwind-alt.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/run-fail/unwind-alt.rs b/src/test/run-fail/unwind-alt.rs
index e59e5b9904a..741a7eb4975 100644
--- a/src/test/run-fail/unwind-alt.rs
+++ b/src/test/run-fail/unwind-alt.rs
@@ -5,6 +5,7 @@ fn test_box() {
 }
 fn test_str() {
     let res = alt false { true { "happy" } };
+    assert res == "happy";
 }
 fn main() {
     test_box();