rust/tests/compile-fail/fast_math_second.rs

8 lines
218 B
Rust
Raw Normal View History

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