diff options
| author | Graydon Hoare <[email protected]> | 2010-08-03 12:20:29 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-03 12:20:29 -0700 |
| commit | 1fc4e9fcc623df313dcaaf541f08fc7a8415c67f (patch) | |
| tree | 6caa66a2e864bdd48be6fb8e199a0c44e146ef4e /src/test/run-pass/child-outlives-parent.rs | |
| parent | Use a better heuristic to determine whether we're on a Mac, issue 69 (diff) | |
| download | rust-1fc4e9fcc623df313dcaaf541f08fc7a8415c67f.tar.xz rust-1fc4e9fcc623df313dcaaf541f08fc7a8415c67f.zip | |
Add tests and fix pexp bug. Closes #141.
Diffstat (limited to 'src/test/run-pass/child-outlives-parent.rs')
| -rw-r--r-- | src/test/run-pass/child-outlives-parent.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/run-pass/child-outlives-parent.rs b/src/test/run-pass/child-outlives-parent.rs new file mode 100644 index 00000000..d7d7c344 --- /dev/null +++ b/src/test/run-pass/child-outlives-parent.rs @@ -0,0 +1,8 @@ +// Reported as issue #126, child leaks the string. + +fn child2(str s) { +} + +fn main() { + auto x = spawn child2("hi"); +}
\ No newline at end of file |