416331ca |
1 | // run-pass |
0531ce1d |
2 | // ignore-emscripten apparently blows the stack |
c34b1796 AL |
3 | |
4 | fn 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 |
8 | pub fn main() { assert_eq!(f(5000), 5000); } |