aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/complex.rs3
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;