aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-10 14:15:02 -0800
committerGraydon Hoare <[email protected]>2011-03-10 14:15:02 -0800
commit5f29988a2cf9263631bf79b758d1f5d3e33dbb80 (patch)
tree0d51a34a6e173538ef4fcae663bf120dae5824e0 /src/test
parentrustc: Perform a cast in vector initialization due to changing layers of indi... (diff)
downloadrust-5f29988a2cf9263631bf79b758d1f5d3e33dbb80.tar.xz
rust-5f29988a2cf9263631bf79b758d1f5d3e33dbb80.zip
Add failing test for tag-leaking case.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/leak-tag-copy.rs9
1 files changed, 9 insertions, 0 deletions
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