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.
fn inner(str dummy, bool b) { if (b) { be inner(dummy, false); } }
fn main() { inner("hi", true); }