]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deep.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / 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); }