aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/tail-call-arg-leak.rs
blob: d99ceaec03bb030715b58b1e2abef91d3dbb4b71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// 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);
}