From f55f46af64e545a5845a14e6157211773c24193e Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 23 Nov 2010 17:02:08 -0800 Subject: rustc: Typecheck whiles and do-whiles. Add a workaround to complex.rs pending a solution to the one-armed-if problem. --- src/test/run-pass/complex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/run-pass/complex.rs b/src/test/run-pass/complex.rs index 3687de7a..f65159ce 100644 --- a/src/test/run-pass/complex.rs +++ b/src/test/run-pass/complex.rs @@ -1,6 +1,7 @@ // -*- rust -*- type t = int; +fn nothing() {} fn putstr(str s) {} fn putint(int i) { let int i = 33; @@ -15,7 +16,7 @@ fn foo(int x) -> int { while (y < 10) { putint(y); if (y * 3 == 4) { - y = y + 2; + y = y + 2; nothing(); } } let t z; -- cgit v1.2.3