diff options
| author | Patrick Walton <[email protected]> | 2010-11-23 17:02:08 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-23 17:02:08 -0800 |
| commit | f55f46af64e545a5845a14e6157211773c24193e (patch) | |
| tree | ded516265ba4ae8112bb562a9f6fcb4d5993d3c1 /src/test | |
| parent | rustc: As an experiment, swap the expected/actual types when checking functio... (diff) | |
| download | rust-f55f46af64e545a5845a14e6157211773c24193e.tar.xz rust-f55f46af64e545a5845a14e6157211773c24193e.zip | |
rustc: Typecheck whiles and do-whiles. Add a workaround to complex.rs pending a solution to the one-armed-if problem.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/complex.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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; |