]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tail-call-arg-leak.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[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 }