about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile1
-rw-r--r--src/test/run-pass/leak-tag-copy.rs9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index fa4ddd20f7d..929be490fa5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -414,6 +414,7 @@ TEST_XFAILS_BOOT :=  $(TASK_XFAILS) \
                     test/run-pass/generic-fn-box.rs \
                     test/run-pass/generic-tup.rs \
                     test/run-pass/iter-ret.rs \
+                    test/run-pass/leak-tag-copy.rs \
                     test/run-pass/lib-io.rs \
                     test/run-pass/mlist-cycle.rs \
                     test/run-pass/obj-as.rs \
diff --git a/src/test/run-pass/leak-tag-copy.rs b/src/test/run-pass/leak-tag-copy.rs
new file mode 100644
index 00000000000..25d87c6e874
--- /dev/null
+++ b/src/test/run-pass/leak-tag-copy.rs
@@ -0,0 +1,9 @@
+tag t {
+  a;
+  b(@int);
+}
+
+fn main() {
+  auto x = b(@10);
+  x = a;
+}
\ No newline at end of file