diff options
| -rw-r--r-- | src/Makefile | 1 | ||||
| -rw-r--r-- | src/test/run-pass/leak-tag-copy.rs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index fa4ddd20..929be490 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 00000000..25d87c6e --- /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 |