From a27cbd4ee8d1ea1061d726dcd8939f54edd257e4 Mon Sep 17 00:00:00 2001 From: Roy Frostig Date: Mon, 28 Jun 2010 16:36:24 -0700 Subject: [PATCH] Testcase (XFAILed) for mutable alias vec weirdness. --- src/Makefile | 2 ++ src/test/run-pass/mutable-alias-vec.rs | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 src/test/run-pass/mutable-alias-vec.rs diff --git a/src/Makefile b/src/Makefile index dce11c64414..f2e0a2c4cdd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -321,6 +321,7 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \ test/run-pass/vec-slice.rs \ test/run-pass/generic-fn-infer.rs \ test/run-pass/generic-recursive-tag.rs \ + test/run-pass/mutable-alias-vec.rs \ test/run-pass/mutable-vec-drop.rs \ test/run-pass/bind-obj-ctor.rs \ test/run-pass/task-comm.rs \ @@ -384,6 +385,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \ many.rs \ mlist-cycle.rs \ mlist.rs \ + mutable-alias-vec.rs \ mutable-vec-drop.rs \ mutual-recursion-group.rs \ native-mod.rc \ diff --git a/src/test/run-pass/mutable-alias-vec.rs b/src/test/run-pass/mutable-alias-vec.rs new file mode 100644 index 00000000000..7e22740cd9c --- /dev/null +++ b/src/test/run-pass/mutable-alias-vec.rs @@ -0,0 +1,7 @@ +// -*- rust -*- + +fn grow(mutable &vec[int] v) { + v += vec(1); +} + +fn main() {}