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