rust/tests/fail/fast_math_second.rs
2022-07-11 11:48:56 +00:00

8 lines
219 B
Rust

#![feature(core_intrinsics)]
fn main() {
unsafe {
let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::INFINITY); //~ ERROR: `fmul_fast` intrinsic called with non-finite value as second parameter
}
}