]> git.lizzy.rs Git - rust.git/blob - tests/ui/deep.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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); }