]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tail-call-arg-leak.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[rust.git] / src / test / ui / tail-call-arg-leak.rs
1 // run-pass
2 // use of tail calls causes arg slot leaks, issue #160.
3 // pretty-expanded FIXME #23616
4
5 fn inner(dummy: String, b: bool) { if b { return inner(dummy, false); } }
6
7 pub fn main() {
8     inner("hi".to_string(), true);
9 }