]> git.lizzy.rs Git - rust.git/blob - tests/ui/deep.rs
Auto merge of #106825 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / ui / deep.rs
1 // run-pass
2 // ignore-emscripten apparently blows the stack
3
4 fn f(x: isize) -> isize {
5     if x == 1 { return 1; } else { let y: isize = 1 + f(x - 1); return y; }
6 }
7
8 pub fn main() { assert_eq!(f(5000), 5000); }