rust/src/test/run-pass/tail-call-arg-leak.rs

8 lines
166 B
Rust
Raw Normal View History

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