From 564bdacecebd25e314c6785d7fff601b12c8e10f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 20 Sep 2011 11:26:01 -0700 Subject: [PATCH] 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. --- src/test/run-fail/unwind-alt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/run-fail/unwind-alt.rs b/src/test/run-fail/unwind-alt.rs index e59e5b9904ab..741a7eb49757 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();