aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-04 00:27:36 -0700
committerGraydon Hoare <[email protected]>2010-08-04 00:27:36 -0700
commit7595aca5e3254d7b0e93f2599ce477984acadfef (patch)
treecd48a904d7fa1a0560765df0a4c12021d9d8e2b5 /src/test
parentMerge branch 'master' of [email protected]:graydon/rust (diff)
downloadrust-7595aca5e3254d7b0e93f2599ce477984acadfef.tar.xz
rust-7595aca5e3254d7b0e93f2599ce477984acadfef.zip
Kill the preallocator, install a sane replacement. Closes #131. And probably a lot of others.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/arithmetic-interference.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/arithmetic-interference.rs b/src/test/run-pass/arithmetic-interference.rs
new file mode 100644
index 00000000..588148bb
--- /dev/null
+++ b/src/test/run-pass/arithmetic-interference.rs
@@ -0,0 +1,7 @@
+// Testcase for issue #131.
+
+fn main() -> () {
+ let int a = 10;
+ log a;
+ check (a * (a - 1) == 90);
+}