mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
test for infinite value in f*_fast
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user