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

7 lines
159 B
Rust
Raw Normal View History

// use of tail calls causes arg slot leaks, issue #160.
2011-07-27 07:19:39 -05:00
fn inner(dummy: str, b: bool) { if b { be inner(dummy, false); } }
fn main() { inner("hi", true); }