diff options
| author | Graydon Hoare <[email protected]> | 2010-09-12 01:05:56 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-12 01:05:56 -0700 |
| commit | 67aa39e1ef4358c309f4b07f1d587a0dad6dddf8 (patch) | |
| tree | 624b28749ce5e58e5aa1bc559be2c9e24aa994fa /src/test | |
| parent | Cleanup, refactoring, and some runtime tests. (diff) | |
| download | rust-67aa39e1ef4358c309f4b07f1d587a0dad6dddf8.tar.xz rust-67aa39e1ef4358c309f4b07f1d587a0dad6dddf8.zip | |
Fix a leak when box types are used via type descriptors.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/leak-box-as-tydesc.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/leak-box-as-tydesc.rs b/src/test/run-pass/leak-box-as-tydesc.rs new file mode 100644 index 00000000..7da40cfe --- /dev/null +++ b/src/test/run-pass/leak-box-as-tydesc.rs @@ -0,0 +1,7 @@ +fn leaky[T](T t) { +} + +fn main() { + auto x = @10; + leaky[@int](x); +}
\ No newline at end of file |