]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/deep.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / run-pass / deep.rs
CommitLineData
0531ce1d 1// ignore-emscripten apparently blows the stack
c34b1796
AL
2
3fn f(x: isize) -> isize {
4 if x == 1 { return 1; } else { let y: isize = 1 + f(x - 1); return y; }
223e47cc
LB
5}
6
62682a34 7pub fn main() { assert_eq!(f(5000), 5000); }