rust/src/test/run-pass/tail-call-arg-leak.rs
2010-09-13 13:37:24 -07:00

12 lines
168 B
Rust

// 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);
}