rust/src/test/run-pass/tail-call-arg-leak.rs
2012-08-01 19:16:06 -07:00

8 lines
166 B
Rust

// use of tail calls causes arg slot leaks, issue #160.
fn inner(dummy: ~str, b: bool) { if b { return inner(dummy, false); } }
fn main() { inner(~"hi", true); }