3 // ignore-wasm32-bare compiled with panic=abort by default
4 // compile-flags: -C debug_assertions=yes
9 let r = panic::catch_unwind(|| {
10 [1, i32::MAX].iter().sum::<i32>();
14 let r = panic::catch_unwind(|| {
15 [2, i32::MAX].iter().product::<i32>();
19 let r = panic::catch_unwind(|| {
20 [1, i32::MAX].iter().cloned().sum::<i32>();
24 let r = panic::catch_unwind(|| {
25 [2, i32::MAX].iter().cloned().product::<i32>();