summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-01-11 21:31:36 -0800
committerNiko Matsakis <niko@alum.mit.edu>2012-01-12 13:47:38 -0800
commite55aa6e5ef60369710d8b2e6f512b2ef84a8c548 (patch)
treefdb6e14395d7b7a95903bcfb6fab91a5fbf02d42 /src/test
parentf4a3a3b8780d88e013a8916eea6cc9a8c2c5d890 (diff)
downloadrust-e55aa6e5ef60369710d8b2e6f512b2ef84a8c548.tar.gz
rust-e55aa6e5ef60369710d8b2e6f512b2ef84a8c548.zip
free uniq data we encounter on the sweep, walk thru them otherwise
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/uniq-fn-leak.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-pass/uniq-fn-leak.rs b/src/test/run-pass/uniq-fn-leak.rs
index 7c9a6e7aca5..adf13c49a1e 100644
--- a/src/test/run-pass/uniq-fn-leak.rs
+++ b/src/test/run-pass/uniq-fn-leak.rs
@@ -6,12 +6,14 @@
 
     type pointy = {
         mutable a : maybe_pointy,
+        c : ~int,
         d : sendfn()->(),
     };
 
     fn empty_pointy() -> @pointy {
         ret @{
             mutable a : none,
+            c : ~22,
             d : sendfn()->(){},
         }
     }