aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-15 18:57:21 -0700
committerGraydon Hoare <[email protected]>2010-07-15 18:57:21 -0700
commitf300ca4ed7dd967b43c965417a8091dbc444cb82 (patch)
tree9f76b2c5864117abf20cefa4d5a9ec27d3088fd2 /src
parentImplement the "simple typechecker", which avoids HM inference (diff)
downloadrust-f300ca4ed7dd967b43c965417a8091dbc444cb82.tar.xz
rust-f300ca4ed7dd967b43c965417a8091dbc444cb82.zip
XFAIL the new destructor tests; collided with new typechecker; add test for issue #109.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile3
-rw-r--r--src/test/run-pass/vec-alloc-append.rs12
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 357672a0..5db5683a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -347,6 +347,7 @@ MUT_BOX_XFAILS := $(addprefix test/run-pass/, \
TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
test/run-pass/mlist-cycle.rs \
test/run-pass/clone-with-exterior.rs \
+ test/run-pass/destructor-ordering.rs \
test/run-pass/obj-as.rs \
test/run-pass/rec-auto.rs \
test/run-pass/vec-slice.rs \
@@ -356,6 +357,7 @@ TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
test/run-pass/generic-recursive-tag.rs \
test/run-pass/mutable-vec-drop.rs \
test/run-pass/bind-obj-ctor.rs \
+ test/run-pass/vec-alloc-append.rs \
test/run-pass/task-comm.rs \
test/compile-fail/rec-missing-fields.rs \
test/compile-fail/bad-send.rs \
@@ -466,6 +468,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
use-import-export.rs \
use-uninit.rs \
utf8.rs \
+ vec-alloc-append.rs \
vec-append.rs \
vec-concat.rs \
vec-drop.rs \
diff --git a/src/test/run-pass/vec-alloc-append.rs b/src/test/run-pass/vec-alloc-append.rs
new file mode 100644
index 00000000..2b4a2b20
--- /dev/null
+++ b/src/test/run-pass/vec-alloc-append.rs
@@ -0,0 +1,12 @@
+// This is a test for issue #109.
+
+use std;
+
+fn slice[T](vec[T] e) {
+ let vec[T] result = std._vec.alloc[T](uint(1));
+ result += e;
+}
+
+fn main() {
+ slice[str](vec("a"));
+}