diff options
| author | Graydon Hoare <[email protected]> | 2011-03-10 14:15:02 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-10 14:15:02 -0800 |
| commit | 5f29988a2cf9263631bf79b758d1f5d3e33dbb80 (patch) | |
| tree | 0d51a34a6e173538ef4fcae663bf120dae5824e0 | |
| parent | rustc: Perform a cast in vector initialization due to changing layers of indi... (diff) | |
| download | rust-5f29988a2cf9263631bf79b758d1f5d3e33dbb80.tar.xz rust-5f29988a2cf9263631bf79b758d1f5d3e33dbb80.zip | |
Add failing test for tag-leaking case.
| -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 |