]> git.lizzy.rs Git - rust.git/blob - tests/fail/fast_math_first.rs
Auto merge of #2422 - RalfJung:integers, r=oli-obk
[rust.git] / tests / fail / fast_math_first.rs
1 #![feature(core_intrinsics)]
2
3 fn main() {
4     unsafe {
5         let _x: f32 = core::intrinsics::frem_fast(f32::NAN, 3.2); //~ ERROR: `frem_fast` intrinsic called with non-finite value as first parameter
6     }
7 }