XFAIL the new destructor tests; collided with new typechecker; add test for issue #109.
This commit is contained in:
parent
c96f0bf738
commit
f300ca4ed7
@ -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 \
|
||||
|
12
src/test/run-pass/vec-alloc-append.rs
Normal file
12
src/test/run-pass/vec-alloc-append.rs
Normal file
@ -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"));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user