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

8 lines
161 B
Rust
Raw Normal View History

// use of tail calls causes arg slot leaks, issue #160.
2012-05-14 16:55:01 -07:00
fn inner(dummy: str, b: bool) { if b { ret inner(dummy, false); } }
fn main() { inner("hi", true); }