Skip to content

Commit f300ca4

Browse files
committed
XFAIL the new destructor tests; collided with new typechecker; add test for issue rust-lang#109.
1 parent c96f0bf commit f300ca4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ MUT_BOX_XFAILS := $(addprefix test/run-pass/, \
347347
TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
348348
test/run-pass/mlist-cycle.rs \
349349
test/run-pass/clone-with-exterior.rs \
350+
test/run-pass/destructor-ordering.rs \
350351
test/run-pass/obj-as.rs \
351352
test/run-pass/rec-auto.rs \
352353
test/run-pass/vec-slice.rs \
@@ -356,6 +357,7 @@ TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
356357
test/run-pass/generic-recursive-tag.rs \
357358
test/run-pass/mutable-vec-drop.rs \
358359
test/run-pass/bind-obj-ctor.rs \
360+
test/run-pass/vec-alloc-append.rs \
359361
test/run-pass/task-comm.rs \
360362
test/compile-fail/rec-missing-fields.rs \
361363
test/compile-fail/bad-send.rs \
@@ -466,6 +468,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
466468
use-import-export.rs \
467469
use-uninit.rs \
468470
utf8.rs \
471+
vec-alloc-append.rs \
469472
vec-append.rs \
470473
vec-concat.rs \
471474
vec-drop.rs \

src/test/run-pass/vec-alloc-append.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This is a test for issue #109.
2+
3+
use std;
4+
5+
fn slice[T](vec[T] e) {
6+
let vec[T] result = std._vec.alloc[T](uint(1));
7+
result += e;
8+
}
9+
10+
fn main() {
11+
slice[str](vec("a"));
12+
}

0 commit comments

Comments
 (0)