test for infinite value in f*_fast

This commit is contained in:
Smitty 2021-05-03 09:56:51 -04:00
parent e591b83185
commit 68d29554a8

View file

@ -2,6 +2,6 @@
fn main() {
unsafe {
let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::NAN); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter
let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::INFINITY); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter
}
}